44 lines · plain
1; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s2 3; CHECK: %[[#extinst_id:]] = OpExtInstImport "OpenCL.std"4 5; CHECK: %[[#var1:]] = OpTypeFloat 326; CHECK: %[[#var2:]] = OpTypeFloat 647; CHECK: %[[#var3:]] = OpTypeVector %[[#var1]] 48 9; CHECK: OpFunction10; CHECK: %[[#]] = OpExtInst %[[#var1]] %[[#extinst_id]] ceil11; CHECK: OpFunctionEnd12 13define spir_func float @TestCeil32(float %x) local_unnamed_addr {14entry:15 %0 = tail call float @llvm.ceil.f32(float %x)16 ret float %017}18 19; CHECK: OpFunction20; CHECK: %[[#]] = OpExtInst %[[#var2]] %[[#extinst_id]] ceil21; CHECK: OpFunctionEnd22 23define spir_func double @TestCeil64(double %x) local_unnamed_addr {24entry:25 %0 = tail call double @llvm.ceil.f64(double %x)26 ret double %027}28 29; CHECK: OpFunction30; CHECK: %[[#]] = OpExtInst %[[#var3]] %[[#extinst_id]] ceil31; CHECK: OpFunctionEnd32 33define spir_func <4 x float> @TestCeilVec(<4 x float> %x) local_unnamed_addr {34entry:35 %0 = tail call <4 x float> @llvm.ceil.v4f32(<4 x float> %x)36 ret <4 x float> %037}38 39declare float @llvm.ceil.f32(float)40 41declare double @llvm.ceil.f64(double)42 43declare <4 x float> @llvm.ceil.v4f32(<4 x float>)44