33; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
44; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
55
6- ; CHECK-DAG: %[[#op_ext_glsl :]] = OpExtInstImport "OpenCL.std"
6+ ; CHECK-DAG: %[[#op_ext_ocl :]] = OpExtInstImport "OpenCL.std"
77
88; CHECK-DAG: %[[#float_32:]] = OpTypeFloat 32
99; CHECK-DAG: %[[#float_16:]] = OpTypeFloat 16
@@ -20,31 +20,31 @@ declare <4 x half> @llvm.spv.degrees.v4f16(<4 x half>)
2020define noundef float @degrees_float (float noundef %a ) {
2121entry:
2222; CHECK: %[[#float_32_arg:]] = OpFunctionParameter %[[#float_32]]
23- ; CHECK: %[[#]] = OpExtInst %[[#float_32]] %[[#op_ext_glsl ]] degrees %[[#float_32_arg]]
23+ ; CHECK: %[[#]] = OpExtInst %[[#float_32]] %[[#op_ext_ocl ]] degrees %[[#float_32_arg]]
2424 %elt.degrees = call float @llvm.spv.degrees.f32 (float %a )
2525 ret float %elt.degrees
2626}
2727
2828define noundef half @degrees_half (half noundef %a ) {
2929entry:
3030; CHECK: %[[#float_16_arg:]] = OpFunctionParameter %[[#float_16]]
31- ; CHECK: %[[#]] = OpExtInst %[[#float_16]] %[[#op_ext_glsl ]] degrees %[[#float_16_arg]]
31+ ; CHECK: %[[#]] = OpExtInst %[[#float_16]] %[[#op_ext_ocl ]] degrees %[[#float_16_arg]]
3232 %elt.degrees = call half @llvm.spv.degrees.f16 (half %a )
3333 ret half %elt.degrees
3434}
3535
3636define noundef <4 x float > @degrees_float_vector (<4 x float > noundef %a ) {
3737entry:
3838; CHECK: %[[#vec4_float_32_arg:]] = OpFunctionParameter %[[#vec4_float_32]]
39- ; CHECK: %[[#]] = OpExtInst %[[#vec4_float_32]] %[[#op_ext_glsl ]] degrees %[[#vec4_float_32_arg]]
39+ ; CHECK: %[[#]] = OpExtInst %[[#vec4_float_32]] %[[#op_ext_ocl ]] degrees %[[#vec4_float_32_arg]]
4040 %elt.degrees = call <4 x float > @llvm.spv.degrees.v4f32 (<4 x float > %a )
4141 ret <4 x float > %elt.degrees
4242}
4343
4444define noundef <4 x half > @degrees_half_vector (<4 x half > noundef %a ) {
4545entry:
4646; CHECK: %[[#vec4_float_16_arg:]] = OpFunctionParameter %[[#vec4_float_16]]
47- ; CHECK: %[[#]] = OpExtInst %[[#vec4_float_16]] %[[#op_ext_glsl ]] degrees %[[#vec4_float_16_arg]]
47+ ; CHECK: %[[#]] = OpExtInst %[[#vec4_float_16]] %[[#op_ext_ocl ]] degrees %[[#vec4_float_16_arg]]
4848 %elt.degrees = call <4 x half > @llvm.spv.degrees.v4f16 (<4 x half > %a )
4949 ret <4 x half > %elt.degrees
5050}
0 commit comments