[llvm-commits] [llvm] r138137 - /llvm/trunk/test/CodeGen/ARM/avoid-cpsr-rmw.ll
Jim Grosbach
grosbach at apple.com
Fri Aug 19 16:10:31 PDT 2011
Author: grosbach
Date: Fri Aug 19 18:10:31 2011
New Revision: 138137
URL: http://llvm.org/viewvc/llvm-project?rev=138137&view=rev
Log:
Use regex to remove false dependencies on register allocation.
Modified:
llvm/trunk/test/CodeGen/ARM/avoid-cpsr-rmw.ll
Modified: llvm/trunk/test/CodeGen/ARM/avoid-cpsr-rmw.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/avoid-cpsr-rmw.ll?rev=138137&r1=138136&r2=138137&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/avoid-cpsr-rmw.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/avoid-cpsr-rmw.ll Fri Aug 19 18:10:31 2011
@@ -6,9 +6,9 @@
define i32 @t(i32 %a, i32 %b, i32 %c, i32 %d) nounwind readnone {
entry:
; CHECK: t:
-; CHECK: muls r2, r2, r3
-; CHECK-NEXT: mul r0, r0, r1
-; CHECK-NEXT: muls r0, r0, r2
+; CHECK: muls [[REG:(r[0-9]+)]], r2, r3
+; CHECK-NEXT: mul [[REG2:(r[0-9]+)]], r0, r1
+; CHECK-NEXT: muls r0, [[REG2]], [[REG]]
%0 = mul nsw i32 %a, %b
%1 = mul nsw i32 %c, %d
%2 = mul nsw i32 %0, %1
More information about the llvm-commits
mailing list