brintos

brintos / llvm-project-archived public Read only

0
0
Text · 589 B · f808068 Raw
18 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2; This tests validates the fact that the formal arguments of type scalar i13; (passed using 32-bit register) is converted back to use predicate registers4; CHECK: [[P0:p[0-3]]] = tstbit(r0,#0)5; CHECK: [[R0:r[0-9]+]] = mux([[P0]],#3,r2)6; CHECK: memb(r1+#0) = [[R0]]7 8target triple = "hexagon"9 10define void @f0(i1 zeroext %a0, ptr nocapture %a1, i8 %a2) local_unnamed_addr #0 {11entry:12  %v0 = select i1 %a0, i8 3, i8 %a213  store i8 %v0, ptr %a1, align 114  ret void15}16 17attributes #0 = { norecurse nounwind optsize "target-cpu"="hexagonv60" }18