brintos

brintos / llvm-project-archived public Read only

0
0
Text · 530 B · 8a8d8ae Raw
17 lines · plain
1; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s2; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}3 4; Test that duplicate align information does not result in SPIR-V validation5; errors due to duplicate Alignment Decorations.6 7;CHECK: OpDecorate %[[#Var:]] Alignment8;CHECK: %[[#Var]] = OpVariable %[[#]]9 10define spir_func void @f() {11 %res = alloca i16, align 2, !spirv.Decorations !112 ret void13}14 15!1 = !{!2}16!2 = !{i32 44, i32 2}17