1// RUN: mlir-translate -test-spirv-roundtrip %s | FileCheck %s 2 3spv.module Physical64 OpenCL requires #spv.vce<v1.0, [Kernel, Addresses], []> { 4 spv.func @float_insts(%arg0 : f32) "None" { 5 // CHECK: {{%.*}} = spv.OCL.exp {{%.*}} : f32 6 %0 = spv.OCL.exp %arg0 : f32 7 // CHECK: {{%.*}} = spv.OCL.fabs {{%.*}} : f32 8 %1 = spv.OCL.fabs %arg0 : f32 9 spv.Return 10 } 11 12 spv.func @integer_insts(%arg0 : i32) "None" { 13 // CHECK: {{%.*}} = spv.OCL.s_abs {{%.*}} : i32 14 %0 = spv.OCL.s_abs %arg0 : i32 15 spv.Return 16 } 17 18 spv.func @vector_size16(%arg0 : vector<16xf32>) "None" { 19 // CHECK: {{%.*}} = spv.OCL.fabs {{%.*}} : vector<16xf32> 20 %0 = spv.OCL.fabs %arg0 : vector<16xf32> 21 spv.Return 22 } 23} 24