summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorWesley Peck <peckw@wesleypeck.com>2010-12-06 22:06:49 +0000
committerWesley Peck <peckw@wesleypeck.com>2010-12-06 22:06:49 +0000
commitdc80380de8646c5ac5b45ead13c15ad2caafcc5a (patch)
treef3e74128323409199fb3ed4036d0606f4b602324 /test/CodeGen
parent56a399023aba6cf1348533df04732950c43eaca7 (diff)
downloadllvm-dc80380de8646c5ac5b45ead13c15ad2caafcc5a.tar.gz
llvm-dc80380de8646c5ac5b45ead13c15ad2caafcc5a.tar.bz2
llvm-dc80380de8646c5ac5b45ead13c15ad2caafcc5a.tar.xz
Fixed reversed operands for IDIV and CMP instructions in MBlaze backend.
Use BRAD instead of BRD for indirect branches in MBlaze backend. patch contributed by Jack Whitham! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/MBlaze/brind.ll4
-rw-r--r--test/CodeGen/MBlaze/jumptable.ll4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/CodeGen/MBlaze/brind.ll b/test/CodeGen/MBlaze/brind.ll
index 9ec7f94925..2229a87382 100644
--- a/test/CodeGen/MBlaze/brind.ll
+++ b/test/CodeGen/MBlaze/brind.ll
@@ -28,7 +28,7 @@ loop:
label %L3,
label %L4,
label %L5 ]
- ; CHECK: brd {{r[0-9]*}}
+ ; CHECK: brad {{r[0-9]*}}
L1:
%tmp.1 = add i32 %a, %b
@@ -68,5 +68,5 @@ finish:
%tmp.8 = urem i32 %tmp.7, 5
br label %loop
- ; CHECK: brd
+ ; CHECK: brad {{r[0-9]*}}
}
diff --git a/test/CodeGen/MBlaze/jumptable.ll b/test/CodeGen/MBlaze/jumptable.ll
index 0861810a01..299084d0ed 100644
--- a/test/CodeGen/MBlaze/jumptable.ll
+++ b/test/CodeGen/MBlaze/jumptable.ll
@@ -18,8 +18,8 @@ define i32 @jmptable(i32 %arg)
i32 8, label %L8
i32 9, label %L9 ]
- ; CHECK: lw [[REG:r[0-9]*]]
- ; CHECK: brd [[REG]]
+ ; CHECK: lw [[REG:r[0-9]*]]
+ ; CHECK: brad [[REG]]
L0:
%var0 = add i32 %arg, 0
br label %DONE