Weaken the check for a specific movl on the twoaddr-coalesce-3
authorEric Christopher <echristo@gmail.com>
Wed, 4 Mar 2015 01:19:17 +0000 (01:19 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 4 Mar 2015 01:19:17 +0000 (01:19 +0000)
test - we only care that there are two moves in the loop and not
which part is relative to which register anyhow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231191 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/twoaddr-coalesce-3.ll

index 1a104e58dbd6eacb96318226ff2cd7cfc25fc9a6..33c9d46f13c3ade6be91d48554d6eb1e521902e3 100644 (file)
@@ -56,14 +56,13 @@ for.body.lr.ph:                                   ; preds = %entry
 
 ; Check that only two mov will be generated in the kernel loop.
 ; CHECK-LABEL: goo:
-; CHECK: g@GOTPCREL(%rip), [[REG3:%[a-z0-0]+]]
 ; CHECK: [[LOOP2:^[a-zA-Z0-9_.]+]]: {{#.*}} %for.body
 ; CHECK-NOT: mov
 ; CHECK: movl {{.*}}, [[REG2:%[a-z0-9]+]]
 ; CHECK-NOT: mov
 ; CHECK: shrl $31, [[REG2]]
 ; CHECK-NOT: mov
-; CHECK: movl {{.*}}, ([[REG3]])
+; CHECK: movl {{.*}}
 ; CHECK: jl [[LOOP2]]
 for.body:                                         ; preds = %for.body.lr.ph, %for.body
   %add5 = phi i32 [ %total.promoted, %for.body.lr.ph ], [ %add, %for.body ]