diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-05-06 05:23:07 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-05-06 05:23:07 +0000 |
commit | 5e926ac651ac497ab782439a3a42840d0ef6f57c (patch) | |
tree | dc044694750bb1d6259bf17f85c58b74bf889b50 /test | |
parent | d363ff334d796c7f3df834d928a10d88ed758454 (diff) | |
download | external_llvm-5e926ac651ac497ab782439a3a42840d0ef6f57c.zip external_llvm-5e926ac651ac497ab782439a3a42840d0ef6f57c.tar.gz external_llvm-5e926ac651ac497ab782439a3a42840d0ef6f57c.tar.bz2 |
Re-revert r130877; it's apparently causing a regression on 197.parser,
possibly related to cbnz formation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-cbnz.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/X86/cmp-redundant.ll | 43 |
2 files changed, 2 insertions, 45 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-cbnz.ll b/test/CodeGen/Thumb2/thumb2-cbnz.ll index 0ca9764..10a4985 100644 --- a/test/CodeGen/Thumb2/thumb2-cbnz.ll +++ b/test/CodeGen/Thumb2/thumb2-cbnz.ll @@ -21,8 +21,8 @@ bb7: ; preds = %bb3 bb9: ; preds = %bb7 ; CHECK: cmp r0, #0 -; CHECK-NOT: cmp -; CHECK: cbnz +; CHECK: cmp r0, #0 +; CHECK-NEXT: cbnz %0 = tail call double @floor(double %b) nounwind readnone ; <double> [#uses=0] br label %bb11 diff --git a/test/CodeGen/X86/cmp-redundant.ll b/test/CodeGen/X86/cmp-redundant.ll deleted file mode 100644 index 39d3440..0000000 --- a/test/CodeGen/X86/cmp-redundant.ll +++ /dev/null @@ -1,43 +0,0 @@ -; RUN: llc < %s -mtriple=x86_64-apple-darwin10 | FileCheck %s - -define i32 @cmp(i32* %aa, i32* %bb) nounwind readnone ssp { -entry: - %a = load i32* %aa - %b = load i32* %bb - %cmp = icmp sgt i32 %a, %b - br i1 %cmp, label %return, label %if.end -; CHECK: cmp: -; CHECK: cmpl -; CHECK: jg - -if.end: ; preds = %entry -; CHECK-NOT: cmpl -; CHECK: cmov - %cmp4 = icmp slt i32 %a, %b - %. = select i1 %cmp4, i32 2, i32 111 - br label %return - -return: ; preds = %if.end, %entry - %retval.0 = phi i32 [ 1, %entry ], [ %., %if.end ] - ret i32 %retval.0 -} - -define i32 @cmp2(i32 %a, i32 %b) nounwind readnone ssp { -entry: - %cmp = icmp sgt i32 %a, %b - br i1 %cmp, label %return, label %if.end -; CHECK: cmp2: -; CHECK: cmpl -; CHECK: jg - -if.end: ; preds = %entry -; CHECK-NOT: cmpl -; CHECK: cmov - %cmp4 = icmp slt i32 %a, %b - %. = select i1 %cmp4, i32 2, i32 111 - br label %return - -return: ; preds = %if.end, %entry - %retval.0 = phi i32 [ 1, %entry ], [ %., %if.end ] - ret i32 %retval.0 -} |