diff options
author | Dan Gohman <gohman@apple.com> | 2009-03-04 19:44:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-03-04 19:44:21 +0000 |
commit | 076aee32e86bc4a0c096262b3261923f25220dc6 (patch) | |
tree | b48835e0f4b1e2926968adf22461b3549044c17e /test | |
parent | fc53fc657e89c8cad49012be7b77cab7e8133004 (diff) | |
download | external_llvm-076aee32e86bc4a0c096262b3261923f25220dc6.zip external_llvm-076aee32e86bc4a0c096262b3261923f25220dc6.tar.gz external_llvm-076aee32e86bc4a0c096262b3261923f25220dc6.tar.bz2 |
Re-apply 66008, now that the unfoldMemoryOperand bug is fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/peep-test.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/X86/peep-test.ll b/test/CodeGen/X86/peep-test.ll new file mode 100644 index 0000000..a95b564 --- /dev/null +++ b/test/CodeGen/X86/peep-test.ll @@ -0,0 +1,22 @@ +; RUN: llvm-as < %s | llc -march=x86-64 > %t +; RUN: not grep cmp %t +; RUN: not grep test %t + +define void @loop(i64 %n, double* nocapture %d) nounwind { +entry: + br label %bb + +bb: + %indvar = phi i64 [ %n, %entry ], [ %indvar.next, %bb ] + %i.03 = add i64 %indvar, %n + %0 = getelementptr double* %d, i64 %i.03 + %1 = load double* %0, align 8 + %2 = mul double %1, 3.000000e+00 + store double %2, double* %0, align 8 + %indvar.next = add i64 %indvar, 1 + %exitcond = icmp eq i64 %indvar.next, 0 + br i1 %exitcond, label %return, label %bb + +return: + ret void +} |