summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanak@gmail.com>2011-07-18 19:58:59 +0000
committerAkira Hatanaka <ahatanak@gmail.com>2011-07-18 19:58:59 +0000
commita921164f39d8bb035325db3564b8f2a6acc053dc (patch)
tree783b0349a9280d3546084e42e64684e6a00f5e76 /test/CodeGen/Mips
parent0d7d0b5cb7e41173b6fff2f0c2fbdcbebc9693fe (diff)
downloadllvm-a921164f39d8bb035325db3564b8f2a6acc053dc.tar.gz
llvm-a921164f39d8bb035325db3564b8f2a6acc053dc.tar.bz2
llvm-a921164f39d8bb035325db3564b8f2a6acc053dc.tar.xz
Do not treat atomic.load.sub differently than other atomic binary intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135418 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips')
-rw-r--r--test/CodeGen/Mips/atomic.ll5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/CodeGen/Mips/atomic.ll b/test/CodeGen/Mips/atomic.ll
index 71e39285db..f9e7e6fc3f 100644
--- a/test/CodeGen/Mips/atomic.ll
+++ b/test/CodeGen/Mips/atomic.ll
@@ -129,13 +129,12 @@ entry:
; CHECK: ori $[[R5:[0-9]+]], $zero, 255
; CHECK: sll $[[R6:[0-9]+]], $[[R5]], $[[R4]]
; CHECK: nor $[[R7:[0-9]+]], $zero, $[[R6]]
-; CHECK: subu $[[R18:[0-9]+]], $zero, $4
-; CHECK: andi $[[R8:[0-9]+]], $[[R18]], 255
+; CHECK: andi $[[R8:[0-9]+]], $4, 255
; CHECK: sll $[[R9:[0-9]+]], $[[R8]], $[[R4]]
; CHECK: $[[BB0:[A-Z_0-9]+]]:
; CHECK: ll $[[R10:[0-9]+]], 0($[[R2]])
-; CHECK: addu $[[R11:[0-9]+]], $[[R10]], $[[R9]]
+; CHECK: subu $[[R11:[0-9]+]], $[[R10]], $[[R9]]
; CHECK: and $[[R12:[0-9]+]], $[[R11]], $[[R6]]
; CHECK: and $[[R13:[0-9]+]], $[[R10]], $[[R7]]
; CHECK: or $[[R14:[0-9]+]], $[[R13]], $[[R12]]