summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/brdelayslot.ll
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-07-26 18:34:25 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-07-26 18:34:25 +0000
commit9b06dd6ca25fd1f8d2cf9227fdffc304c9f51564 (patch)
treeea0c0a8a964e5d0868e065bb16e396a2903a48d1 /test/CodeGen/Mips/brdelayslot.ll
parentb390abce164eb5ba931ec220be02fc5f35a12b43 (diff)
downloadexternal_llvm-9b06dd6ca25fd1f8d2cf9227fdffc304c9f51564.zip
external_llvm-9b06dd6ca25fd1f8d2cf9227fdffc304c9f51564.tar.gz
external_llvm-9b06dd6ca25fd1f8d2cf9227fdffc304c9f51564.tar.bz2
[mips] Print instructions "beq", "bne" and "or" using assembler pseudo
instructions "beqz", "bnez" and "move", when possible. beq $2, $zero, $L1 => beqz $2, $L1 bne $2, $zero, $L1 => bnez $2, $L1 or $2, $3, $zero => move $2, $3 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/brdelayslot.ll')
-rw-r--r--test/CodeGen/Mips/brdelayslot.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/Mips/brdelayslot.ll b/test/CodeGen/Mips/brdelayslot.ll
index 82e4730..869ecd9 100644
--- a/test/CodeGen/Mips/brdelayslot.ll
+++ b/test/CodeGen/Mips/brdelayslot.ll
@@ -133,7 +133,7 @@ declare void @foo11()
; SUCCBB-LABEL: succbbs_loop1:
; SUCCBB: blez $5, $BB
; SUCCBB-NEXT: addiu
-; SUCCBB: bne ${{[0-9]+}}, $zero, $BB
+; SUCCBB: bnez ${{[0-9]+}}, $BB
; SUCCBB-NEXT: addiu
define i32 @succbbs_loop1(i32* nocapture %a, i32 %n) {
@@ -159,7 +159,7 @@ for.end: ; preds = %for.body, %entry
; Check that the first branch has its slot filled.
;
; SUCCBB-LABEL: succbbs_br1:
-; SUCCBB: beq ${{[0-9]+}}, $zero, $BB
+; SUCCBB: beqz ${{[0-9]+}}, $BB
; SUCCBB-NEXT: lw $25, %call16(foo100)
define void @succbbs_br1(i32 %a) {