summaryrefslogtreecommitdiff
path: root/test
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
commitfb60a4e823b46f459cd6d7951b98cbeb3b29f310 (patch)
treef26f4d360b0f73f9d8198115750922bc3536df38 /test
parent43934aee71746576b6e16663f382401b8693c83a (diff)
downloadllvm-fb60a4e823b46f459cd6d7951b98cbeb3b29f310.tar.gz
llvm-fb60a4e823b46f459cd6d7951b98cbeb3b29f310.tar.bz2
llvm-fb60a4e823b46f459cd6d7951b98cbeb3b29f310.tar.xz
[mips] Fix bug in test case. Disable machine LICM to prevent instruction from
being moved out of a basic block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Mips/atomic.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CodeGen/Mips/atomic.ll b/test/CodeGen/Mips/atomic.ll
index 050689dcea..819f258c2a 100644
--- a/test/CodeGen/Mips/atomic.ll
+++ b/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]]