summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-11-02 21:46:42 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-11-02 21:46:42 +0000
commit6dcf75897cbacb6f9ea48d44f52cf6ef3f2df055 (patch)
tree5be0f5d6a109ca7e059a6f1148bb914b20c0be09
parent66e300e6f99c06a489b4cb77245d1667cb46ea3c (diff)
downloadbcm5719-llvm-6dcf75897cbacb6f9ea48d44f52cf6ef3f2df055.tar.gz
bcm5719-llvm-6dcf75897cbacb6f9ea48d44f52cf6ef3f2df055.zip
[mips] Fix bug in test case. Disable machine LICM to prevent instruction from
being moved out of a basic block. llvm-svn: 167322
-rw-r--r--llvm/test/CodeGen/Mips/atomic.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/Mips/atomic.ll b/llvm/test/CodeGen/Mips/atomic.ll
index 050689dcea6..819f258c2a4 100644
--- a/llvm/test/CodeGen/Mips/atomic.ll
+++ b/llvm/test/CodeGen/Mips/atomic.ll
@@ -1,4 +1,4 @@
-; RUN: llc -march=mipsel < %s | FileCheck %s
+; RUN: llc -march=mipsel --disable-machine-licm < %s | FileCheck %s
@x = common global i32 0, align 4
@@ -181,8 +181,9 @@ entry:
; CHECK: $[[BB0:[A-Z_0-9]+]]:
; CHECK: ll $[[R10:[0-9]+]], 0($[[R2]])
+; CHECK: and $[[R18:[0-9]+]], $[[R9]], $[[R6]]
; CHECK: and $[[R13:[0-9]+]], $[[R10]], $[[R7]]
-; CHECK: or $[[R14:[0-9]+]], $[[R13]], $[[R9]]
+; CHECK: or $[[R14:[0-9]+]], $[[R13]], $[[R18]]
; CHECK: sc $[[R14]], 0($[[R2]])
; CHECK: beq $[[R14]], $zero, $[[BB0]]
OpenPOWER on IntegriCloud