brintos

brintos / llvm-project-archived public Read only

0
0
Text · 463 B · 8da39a1 Raw
17 lines · plain
1;; uint8 foo(uint8 c, unsigned i) {2;;   c[i] = 42;3;;   return c;4;; }5 6; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s7 8; CHECK: %[[#TypeInt:]] = OpTypeInt 329; CHECK: %[[#TypeVector:]] = OpTypeVector %[[#TypeInt]] 810; CHECK: %[[#]] = OpVectorInsertDynamic %[[#TypeVector]]11 12define spir_func <8 x i32> @foo(<8 x i32> %c, i32 %i) local_unnamed_addr {13entry:14  %vecins = insertelement <8 x i32> %c, i32 42, i32 %i15  ret <8 x i32> %vecins16}17