| 1 |
; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV |
| 2 |
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %} |
| 3 |
|
| 4 |
; CHECK-SPIRV: OpDecorate %[[#ALIGNMENT:]] Alignment 16 |
| 5 |
; CHECK-SPIRV: %[[#ALIGNMENT]] = OpFunctionParameter %[[#]] |
| 6 |
|
| 7 |
%struct._ZTS6Struct.Struct = type { %struct._ZTS11floatStruct.floatStruct, %struct._ZTS11floatStruct.floatStruct } |
| 8 |
%struct._ZTS11floatStruct.floatStruct = type { float, float, float, float } |
| 9 |
|
| 10 |
define spir_func void @_ZN3FooC2Ev(ptr addrspace(4) align 16 %0) { |
| 11 |
ret void |
| 12 |
} |