diff options
Diffstat (limited to 'test/CodeGen/PowerPC/negctr.ll')
| -rw-r--r-- | test/CodeGen/PowerPC/negctr.ll | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/CodeGen/PowerPC/negctr.ll b/test/CodeGen/PowerPC/negctr.ll index 2f6995c65dd8..2e649930da61 100644 --- a/test/CodeGen/PowerPC/negctr.ll +++ b/test/CodeGen/PowerPC/negctr.ll @@ -14,9 +14,12 @@ for.body: ; preds = %for.body, %entry %exitcond = icmp eq i32 %lftr.wideiv, 0 br i1 %exitcond, label %for.end, label %for.body -; FIXME: We currently can't form the 32-bit unsigned trip count necessary here! ; CHECK: @main -; CHECK-NOT: bdnz +; CHECK: li [[REG:[0-9]+]], 0 +; CHECK: oris [[REG2:[0-9]+]], [[REG]], 65535 +; CHECK: ori [[REG3:[0-9]+]], [[REG2]], 65535 +; CHECK: mtctr [[REG3]] +; CHECK: bdnz for.end: ; preds = %for.body, %entry ret void @@ -80,4 +83,4 @@ for.end: ; preds = %for.body, %entry ret void } -attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } +attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } |
