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 %}
4 ; CHECK: OpExtInstImport "GLSL.std.450"
6 define noundef float @exp2_float(float noundef %a) {
8 ; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] Exp2 %[[#]]
9 %elt.exp2 = call float @llvm.exp2.f32(float %a)
13 define noundef half @exp2_half(half noundef %a) {
15 ; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] Exp2 %[[#]]
16 %elt.exp2 = call half @llvm.exp2.f16(half %a)
20 declare half @llvm.exp2.f16(half)
21 declare float @llvm.exp2.f32(float)