[llvm-commits] [llvm] r167322 - /llvm/trunk/test/CodeGen/Mips/atomic.ll

Akira Hatanaka ahatanaka at mips.com
Fri Nov 2 14:46:42 PDT 2012


Author: ahatanak
Date: Fri Nov  2 16:46:42 2012
New Revision: 167322

URL: http://llvm.org/viewvc/llvm-project?rev=167322&view=rev
Log:
[mips] Fix bug in test case. Disable machine LICM to prevent instruction from
being moved out of a basic block.


Modified:
    llvm/trunk/test/CodeGen/Mips/atomic.ll

Modified: llvm/trunk/test/CodeGen/Mips/atomic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/atomic.ll?rev=167322&r1=167321&r2=167322&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/atomic.ll (original)
+++ llvm/trunk/test/CodeGen/Mips/atomic.ll Fri Nov  2 16:46:42 2012
@@ -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 @@
 
 ; 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]]
 





More information about the llvm-commits mailing list