summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/llvm-ir/lshr.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Mips/llvm-ir/lshr.ll')
-rw-r--r--test/CodeGen/Mips/llvm-ir/lshr.ll28
1 files changed, 18 insertions, 10 deletions
diff --git a/test/CodeGen/Mips/llvm-ir/lshr.ll b/test/CodeGen/Mips/llvm-ir/lshr.ll
index 09617edc94068..926f3e4c8d798 100644
--- a/test/CodeGen/Mips/llvm-ir/lshr.ll
+++ b/test/CodeGen/Mips/llvm-ir/lshr.ll
@@ -81,20 +81,24 @@ entry:
; M2: srlv $[[T0:[0-9]+]], $4, $7
; M2: andi $[[T1:[0-9]+]], $7, 32
- ; M2: bnez $[[T1]], $[[BB0:BB[0-9_]+]]
+ ; M2: beqz $[[T1]], $[[BB0:BB[0-9_]+]]
; M2: move $3, $[[T0]]
+ ; M2: beqz $[[T1]], $[[BB1:BB[0-9_]+]]
+ ; M2: addiu $2, $zero, 0
+ ; M2: $[[EXIT:BB[0-9_]+]]:
+ ; M2: jr $ra
+ ; M2: nop
+ ; M2: $[[BB0]]:
; M2: srlv $[[T2:[0-9]+]], $5, $7
; M2: not $[[T3:[0-9]+]], $7
; M2: sll $[[T4:[0-9]+]], $4, 1
; M2: sllv $[[T5:[0-9]+]], $[[T4]], $[[T3]]
; M2: or $3, $[[T3]], $[[T2]]
- ; M2: $[[BB0]]:
- ; M2: bnez $[[T1]], $[[BB1:BB[0-9_]+]]
+ ; M2: bnez $[[T1]], $[[EXIT:BB[0-9_]+]]
; M2: addiu $2, $zero, 0
- ; M2: move $2, $[[T0]]
; M2: $[[BB1]]:
; M2: jr $ra
- ; M2: nop
+ ; M2: move $2, $[[T0]]
; 32R1-R5: srlv $[[T0:[0-9]+]], $5, $7
; 32R1-R5: not $[[T1:[0-9]+]], $7
@@ -160,20 +164,24 @@ entry:
; M3: sll $[[T0:[0-9]+]], $7, 0
; M3: dsrlv $[[T1:[0-9]+]], $4, $7
; M3: andi $[[T2:[0-9]+]], $[[T0]], 64
- ; M3: bnez $[[T3:[0-9]+]], [[BB0:\.LBB[0-9_]+]]
+ ; M3: beqz $[[T3:[0-9]+]], [[BB0:\.LBB[0-9_]+]]
; M3: move $3, $[[T1]]
+ ; M3: beqz $[[T3]], [[BB1:\.LBB[0-9_]+]]
+ ; M3: daddiu $2, $zero, 0
+ ; M3: [[EXIT:\.LBB[0-9_]+]]:
+ ; M3: jr $ra
+ ; M3: nop
+ ; M3: [[BB0]]:
; M3: dsrlv $[[T4:[0-9]+]], $5, $7
; M3: dsll $[[T5:[0-9]+]], $4, 1
; M3: not $[[T6:[0-9]+]], $[[T0]]
; M3: dsllv $[[T7:[0-9]+]], $[[T5]], $[[T6]]
; M3: or $3, $[[T7]], $[[T4]]
- ; M3: [[BB0]]:
- ; M3: bnez $[[T3]], [[BB1:\.LBB[0-9_]+]]
+ ; M3: bnez $[[T3]], [[EXIT]]
; M3: daddiu $2, $zero, 0
- ; M3: move $2, $[[T1]]
; M3: [[BB1]]:
; M3: jr $ra
- ; M3: nop
+ ; M3: move $2, $[[T1]]
; GP64-NOT-R6: dsrlv $[[T0:[0-9]+]], $5, $7
; GP64-NOT-R6: dsll $[[T1:[0-9]+]], $4, 1