brintos

brintos / llvm-project-archived public Read only

0
0
Text · 738 B · 03731b6 Raw
21 lines · plain
1; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV2 3; TODO: This test currently fails with LLVM_ENABLE_EXPENSIVE_CHECKS enabled4; XFAIL: expensive_checks5 6; CHECK-SPIRV: OpName %[[#vec:]] "vec"7; CHECK-SPIRV: OpName %[[#index:]] "index"8; CHECK-SPIRV: OpName %[[#res:]] "res"9 10; CHECK-SPIRV: %[[#float:]] = OpTypeFloat 3211; CHECK-SPIRV: %[[#float2:]] = OpTypeVector %[[#float]] 212 13; CHECK-SPIRV: %[[#res]] = OpVectorExtractDynamic %[[#float]] %[[#vec]] %[[#index]]14 15define spir_kernel void @test(float addrspace(1)* nocapture %out, <2 x float> %vec, i32 %index) {16entry:17  %res = extractelement <2 x float> %vec, i32 %index18  store float %res, float addrspace(1)* %out, align 419  ret void20}21