diff options
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/negctr.ll')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/negctr.ll | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/PowerPC/negctr.ll b/llvm/test/CodeGen/PowerPC/negctr.ll index 7ed4b6ae4b8..5aa5bd1fa69 100644 --- a/llvm/test/CodeGen/PowerPC/negctr.ll +++ b/llvm/test/CodeGen/PowerPC/negctr.ll @@ -35,10 +35,14 @@ for.body: ; preds = %for.body, %entry %exitcond = icmp eq i64 %indvars.iv.next, 0 br i1 %exitcond, label %for.end, label %for.body +; FIXME: This should be a hardware loop. +; cmp is optimized to uadd intrinsic in CGP pass which can not be recognized in +; later HardwareLoops Pass. ; CHECK: @main1 -; CHECK: li [[REG:[0-9]+]], -1 -; CHECK: mtctr [[REG]] -; CHECK: bdnz +; CHECK: li [[REG:[0-9]+]], 1 +; CHECK: addi [[REG2:[0-9]+]], [[REG]], 1 +; CHECK: cmpld +; CHECK: bge for.end: ; preds = %for.body, %entry ret void |

