brintos

brintos / llvm-project-archived public Read only

0
0
Text · 429 B · 6c61013 Raw
22 lines · plain
1; RUN: opt -passes=licm -mtriple=amdgcn -S -o - %s | FileCheck %s2 3; CHECK-LABEL: foo4; CHECK: ret5define void @foo(ptr %d, ptr %s, i32 %idx) {6entry:7  br label %for.body8 9for.body:10  %v0 = load <1 x i32>, ptr %s11  %v1 = bitcast <1 x i32> %v0 to <4 x i8>12  br label %for.cond13 14for.cond:15  %e0 = extractelement <4 x i8> %v1, i32 %idx16  store i8 %e0, ptr %d17  br i1 false, label %for.exit, label %for.body18 19for.exit:20  ret void21}22