summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/llvm-ir/shl.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Mips/llvm-ir/shl.ll')
-rw-r--r--test/CodeGen/Mips/llvm-ir/shl.ll28
1 files changed, 18 insertions, 10 deletions
diff --git a/test/CodeGen/Mips/llvm-ir/shl.ll b/test/CodeGen/Mips/llvm-ir/shl.ll
index ce3b91373f7f0..13545907e21e5 100644
--- a/test/CodeGen/Mips/llvm-ir/shl.ll
+++ b/test/CodeGen/Mips/llvm-ir/shl.ll
@@ -97,20 +97,24 @@ entry:
; M2: sllv $[[T0:[0-9]+]], $5, $7
; M2: andi $[[T1:[0-9]+]], $7, 32
- ; M2: bnez $[[T1]], $[[BB0:BB[0-9_]+]]
+ ; M2: beqz $[[T1]], $[[BB0:BB[0-9_]+]]
; M2: move $2, $[[T0]]
+ ; M2: beqz $[[T1]], $[[BB1:BB[0-9_]+]]
+ ; M2: addiu $3, $zero, 0
+ ; M2: $[[EXIT:BB[0-9_]+]]:
+ ; M2: jr $ra
+ ; M2: nop
+ ; M2: $[[BB0]]:
; M2: sllv $[[T2:[0-9]+]], $4, $7
; M2: not $[[T3:[0-9]+]], $7
; M2: srl $[[T4:[0-9]+]], $5, 1
; M2: srlv $[[T5:[0-9]+]], $[[T4]], $[[T3]]
; M2: or $2, $[[T2]], $[[T3]]
- ; M2: $[[BB0]]:
- ; M2: bnez $[[T1]], $[[BB1:BB[0-9_]+]]
+ ; M2: bnez $[[T1]], $[[EXIT]]
; M2: addiu $3, $zero, 0
- ; M2: move $3, $[[T0]]
; M2: $[[BB1]]:
; M2: jr $ra
- ; M2: nop
+ ; M2: move $3, $[[T0]]
; 32R1-R5: sllv $[[T0:[0-9]+]], $4, $7
; 32R1-R5: not $[[T1:[0-9]+]], $7
@@ -176,20 +180,24 @@ entry:
; M3: sll $[[T0:[0-9]+]], $7, 0
; M3: dsllv $[[T1:[0-9]+]], $5, $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 $2, $[[T1]]
+ ; M3: beqz $[[T3]], [[BB1:\.LBB[0-9_]+]]
+ ; M3: daddiu $3, $zero, 0
+ ; M3: [[EXIT:\.LBB[0-9_]+]]:
+ ; M3: jr $ra
+ ; M3: nop
+ ; M3: [[BB0]]:
; M3: dsllv $[[T4:[0-9]+]], $4, $7
; M3: dsrl $[[T5:[0-9]+]], $5, 1
; M3: not $[[T6:[0-9]+]], $[[T0]]
; M3: dsrlv $[[T7:[0-9]+]], $[[T5]], $[[T6]]
; M3: or $2, $[[T4]], $[[T7]]
- ; M3: [[BB0]]:
- ; M3: bnez $[[T3]], [[BB1:\.LBB[0-9_]+]]
+ ; M3: bnez $[[T3]], [[EXIT]]
; M3: daddiu $3, $zero, 0
- ; M3: move $3, $[[T1]]
; M3: [[BB1]]:
; M3: jr $ra
- ; M3: nop
+ ; M3: move $3, $[[T1]]
; GP64-NOT-R6: dsllv $[[T0:[0-9]+]], $4, $7
; GP64-NOT-R6: dsrl $[[T1:[0-9]+]], $5, 1