You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
722 B

// RUN: mlir-translate -test-spirv-roundtrip %s | FileCheck %s
spv.module Physical64 OpenCL requires #spv.vce<v1.0, [Kernel, Addresses], []> {
spv.func @float_insts(%arg0 : f32) "None" {
// CHECK: {{%.*}} = spv.OCL.exp {{%.*}} : f32
%0 = spv.OCL.exp %arg0 : f32
// CHECK: {{%.*}} = spv.OCL.fabs {{%.*}} : f32
%1 = spv.OCL.fabs %arg0 : f32
spv.Return
}
spv.func @integer_insts(%arg0 : i32) "None" {
// CHECK: {{%.*}} = spv.OCL.s_abs {{%.*}} : i32
%0 = spv.OCL.s_abs %arg0 : i32
spv.Return
}
spv.func @vector_size16(%arg0 : vector<16xf32>) "None" {
// CHECK: {{%.*}} = spv.OCL.fabs {{%.*}} : vector<16xf32>
%0 = spv.OCL.fabs %arg0 : vector<16xf32>
spv.Return
}
}