xref: /llvm-project/llvm/test/CodeGen/SPIRV/transcoding/DecorationAlignment.ll (revision 0a443f13b49b3f392461a0bb60b0146cfc4607c7)
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
10define spir_func void @_ZN3FooC2Ev(%struct._ZTS6Struct.Struct addrspace(4)* align 16 %0) {
11  ret void
12}
13