1 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
2 ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
3 ; RUN: llc -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s
5 ; CHECK: %[[#F32:]] = OpTypeFloat 32
6 ; CHECK: %[[#F64:]] = OpTypeFloat 64
11 ; CHECK: OpConstant %[[#F32]] 0.5
12 %f = alloca float, align 4
13 store float 5.000000e-01, ptr %f, align 4
15 ; CHECK: OpConstant %[[#F64]] 0.5
16 %d = alloca double, align 8
17 store double 5.000000e-01, ptr %d, align 8
19 ; CHECK: OpConstant %[[#F32]] 1.0000016166037976e-39
20 %hexf = alloca float, align 4
21 store float 0x37D5C73200000000, ptr %hexf, align 4
23 ; CHECK: OpConstant %[[#F32]] 0x1p+128
24 %inf = alloca float, align 4
25 store float 0x7FF0000000000000, ptr %inf, align 4
27 ; CHECK: OpConstant %[[#F32]] -0x1p+128
28 %ninf = alloca float, align 4
29 store float 0xFFF0000000000000, ptr %ninf, align 4
31 ; CHECK: OpConstant %[[#F32]] 0x1.8p+128
32 %nan = alloca float, align 4
33 store float 0x7FF8000000000000, ptr %nan, align 4