| 1 |
119734787 65536 458752 28 0 |
| 2 |
2 Capability Addresses |
| 3 |
2 Capability Linkage |
| 4 |
2 Capability Kernel |
| 5 |
2 Capability Float64 |
| 6 |
2 Capability Int64 |
| 7 |
3 MemoryModel 2 2 |
| 8 |
8 EntryPoint 6 1 "vector_times_scalar" |
| 9 |
3 Source 3 102000 |
| 10 |
3 Name 2 "res" |
| 11 |
3 Name 3 "lhs" |
| 12 |
3 Name 4 "rhs" |
| 13 |
4 Decorate 5 FuncParamAttr 5 |
| 14 |
2 DecorationGroup 5 |
| 15 |
4 Decorate 6 BuiltIn 28 |
| 16 |
3 Decorate 6 Constant |
| 17 |
11 Decorate 6 LinkageAttributes "__spirv_GlobalInvocationId" Import |
| 18 |
5 GroupDecorate 5 2 3 4 |
| 19 |
4 TypeInt 7 64 0 |
| 20 |
5 Constant 7 10 32 0 |
| 21 |
4 TypeVector 8 7 3 |
| 22 |
4 TypePointer 9 0 8 |
| 23 |
2 TypeVoid 11 |
| 24 |
3 TypeFloat 12 64 |
| 25 |
4 TypePointer 13 5 12 |
| 26 |
4 TypeVector 14 12 4 |
| 27 |
4 TypePointer 15 5 14 |
| 28 |
6 TypeFunction 16 11 15 15 13 |
| 29 |
4 Variable 9 6 0 |
| 30 |
|
| 31 |
5 Function 11 1 0 16 |
| 32 |
3 FunctionParameter 15 2 |
| 33 |
3 FunctionParameter 15 3 |
| 34 |
3 FunctionParameter 13 4 |
| 35 |
|
| 36 |
2 Label 17 |
| 37 |
4 Load 8 18 6 |
| 38 |
5 CompositeExtract 7 19 18 0 |
| 39 |
5 ShiftLeftLogical 7 20 19 10 |
| 40 |
5 ShiftRightArithmetic 7 21 20 10 |
| 41 |
5 InBoundsPtrAccessChain 15 22 3 21 |
| 42 |
6 Load 14 23 22 2 32 |
| 43 |
5 InBoundsPtrAccessChain 13 24 4 21 |
| 44 |
6 Load 12 25 24 2 8 |
| 45 |
5 VectorTimesScalar 14 26 23 25 |
| 46 |
5 InBoundsPtrAccessChain 15 27 2 21 |
| 47 |
5 Store 27 26 2 32 |
| 48 |
1 Return |
| 49 |
|
| 50 |
1 FunctionEnd |
| 51 |
|
| 52 |
; RUN: llvm-spirv %s -to-binary -o %t.spv |
| 53 |
; RUN: spirv-val %t.spv |
| 54 |
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.bc |
| 55 |
; RUN: llvm-dis < %t.bc | FileCheck %s --check-prefix=CHECK-LLVM |
| 56 |
|
| 57 |
; CHECK-LLVM: %.splatinsert = insertelement <4 x double> poison, double %{{[0-9]*}}, i64 0 |
| 58 |
; CHECK-LLVM: %[[shufflevector:[0-9]+]] = shufflevector <4 x double> %.splatinsert, <4 x double> poison, <4 x i32> zeroinitializer |
| 59 |
; CHECK-LLVM: %scale = fmul <4 x double> %{{[0-9]*}}, %[[shufflevector]] |
| 60 |
|