1 ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
2 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
4 ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
5 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
7 ; CHECK: %[[#F32:]] = OpTypeFloat 32
8 ; CHECK: %[[#F64:]] = OpTypeFloat 64
13 ; CHECK: OpConstant %[[#F32]] 0.5
14 %f = alloca float, align 4
15 store float 5.000000e-01, ptr %f, align 4
17 ; CHECK: OpConstant %[[#F64]] 0.5
18 %d = alloca double, align 8
19 store double 5.000000e-01, ptr %d, align 8
21 ; CHECK: OpConstant %[[#F32]] 1.0000016166037976e-39
22 %hexf = alloca float, align 4
23 store float 0x37D5C73200000000, ptr %hexf, align 4
25 ; CHECK: OpConstant %[[#F32]] 0x1p+128
26 %inf = alloca float, align 4
27 store float 0x7FF0000000000000, ptr %inf, align 4
29 ; CHECK: OpConstant %[[#F32]] -0x1p+128
30 %ninf = alloca float, align 4
31 store float 0xFFF0000000000000, ptr %ninf, align 4
33 ; CHECK: OpConstant %[[#F32]] 0x1.8p+128
34 %nan = alloca float, align 4
35 store float 0x7FF8000000000000, ptr %nan, align 4