brintos

brintos / llvm-project-archived public Read only

0
0
Text · 683 B · 98993ef Raw
29 lines · plain
1; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s2 3; CHECK-DAG: %[[#I32:]] = OpTypeInt 324; CHECK-DAG: %[[#I16:]] = OpTypeInt 165; CHECK-DAG: %[[#STRUCT:]] = OpTypeStruct %[[#I32]] %[[#I16]]6; CHECK-DAG: %[[#NESTED_STRUCT:]] = OpTypeStruct %[[#STRUCT]] %[[#I16]]7; CHECK-DAG: %[[#UNDEF:]] = OpUndef %[[#NESTED_STRUCT]]8 9; CHECK: %[[#]] = OpFunction %[[#]] None %[[#]]10; CHECK: %[[#]] = OpLabel11; CHECK: OpStore %[[#]] %[[#UNDEF]] Aligned 412; CHECK: OpReturn13; CHECK: OpFunctionEnd14 15%struct = type {16  i32,17  i1618}19 20%nested_struct = type {21  %struct,22  i1623}24 25define void @foo(ptr %ptr) {26  store %nested_struct undef, ptr %ptr27  ret void28}29