brintos

brintos / llvm-project-archived public Read only

0
0
Text · 774 B · fef099e Raw
29 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3; Test that the hardware loop pass does not alter the comparison4; to use the result from the induction expression instead of5; from the Phi.6 7; CHECK: cmpb.gtu([[REG0:r[0-9]+]]8; CHECK: [[REG0]] = add([[REG0]],9 10define void @f0() #0 {11b0:12  br label %b113 14b1:                                               ; preds = %b1, %b015  br i1 undef, label %b1, label %b216 17b2:                                               ; preds = %b2, %b118  %v0 = phi i32 [ %v3, %b2 ], [ undef, %b1 ]19  %v1 = trunc i32 %v0 to i820  %v2 = icmp ugt i8 %v1, 4421  %v3 = add i32 %v0, -3022  br i1 %v2, label %b2, label %b323 24b3:                                               ; preds = %b225  ret void26}27 28attributes #0 = { nounwind "target-cpu"="hexagonv55" }29