blob: 7122c9b299536901dd4cfb059170d4eb7e9c8b41 [file] [log] [blame]
David Netod1a026e2021-07-30 16:03:06 +00001; Test: SpvUnaryConversionTest_ConvertFToS_Scalar_ToUnsigned.spvasm
2; SPIR-V
3; Version: 1.0
4; Generator: Khronos SPIR-V Tools Assembler; 0
5; Bound: 101
6; Schema: 0
7OpCapability Shader
8OpMemoryModel Logical Simple
9OpEntryPoint Fragment %100 "main"
10OpExecutionMode %100 OriginUpperLeft
11%void = OpTypeVoid
12%3 = OpTypeFunction %void
13%bool = OpTypeBool
14%uint = OpTypeInt 32 0
15%int = OpTypeInt 32 1
16%float = OpTypeFloat 32
17%true = OpConstantTrue %bool
18%false = OpConstantFalse %bool
19%v2bool = OpTypeVector %bool 2
20%11 = OpConstantComposite %v2bool %true %false
21%uint_10 = OpConstant %uint 10
22%uint_20 = OpConstant %uint 20
23%int_30 = OpConstant %int 30
24%int_40 = OpConstant %int 40
25%float_50 = OpConstant %float 50
26%float_60 = OpConstant %float 60
27%_ptr_Function_uint = OpTypePointer Function %uint
28%_ptr_Function_int = OpTypePointer Function %int
29%_ptr_Function_float = OpTypePointer Function %float
30%v2uint = OpTypeVector %uint 2
31%v2int = OpTypeVector %int 2
32%v2float = OpTypeVector %float 2
33%24 = OpConstantComposite %v2uint %uint_10 %uint_20
34%25 = OpConstantComposite %v2uint %uint_20 %uint_10
35%26 = OpConstantComposite %v2int %int_30 %int_40
36%27 = OpConstantComposite %v2int %int_40 %int_30
37%28 = OpConstantComposite %v2float %float_50 %float_60
38%29 = OpConstantComposite %v2float %float_60 %float_50
39%100 = OpFunction %void None %3
40%31 = OpLabel
41%30 = OpCopyObject %float %float_50
42%1 = OpConvertFToS %uint %30
43OpReturn
44OpFunctionEnd
45