1 ; RUN: llc -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s
2 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %}
3 ; CHECK: OpExtInstImport "GLSL.std.450"
5 define noundef float @ceil_float(float noundef %a) {
7 ; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] Ceil %[[#]]
8 %elt.ceil = call float @llvm.ceil.f32(float %a)
12 define noundef half @ceil_half(half noundef %a) {
14 ; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] Ceil %[[#]]
15 %elt.ceil = call half @llvm.ceil.f16(half %a)
19 declare half @llvm.ceil.f16(half)
20 declare float @llvm.ceil.f32(float)