llvm/test/CodeGen/X86/fold-pcmpeqd-1.ll: Rewrite expressions to pass regardless of...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 2 Aug 2012 06:33:58 +0000 (06:33 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 2 Aug 2012 06:33:58 +0000 (06:33 +0000)
  - Relax to match even if epilogue (pop %ebp) were emitted.
  - Assume the return value is stored to %xmm0.

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

test/CodeGen/X86/fold-pcmpeqd-1.ll

index a35dccddbab296daecadbf02f8d3a4e9c7869baf..5d817ad6cd86bed19166a3190c1d4d3c6c9b8501 100644 (file)
@@ -3,12 +3,14 @@
 define <2 x double> @foo() nounwind {
   ret <2 x double> bitcast (<2 x i64><i64 -1, i64 -1> to <2 x double>)
 ; CHECK: foo:
-; CHECK: pcmpeqd %xmm{{[0-9]+}}, %xmm{{[0-9]+}}
-; CHECK-NEXT: ret
+; CHECK: pcmpeqd %xmm0, %xmm0
+; CHECK-NOT: %xmm
+; CHECK: ret
 }
 define <2 x double> @bar() nounwind {
   ret <2 x double> bitcast (<2 x i64><i64 0, i64 0> to <2 x double>)
 ; CHECK: bar:
-; CHECK: xorps %xmm{{[0-9]+}}, %xmm{{[0-9]+}}
-; CHECK-NEXT: ret
+; CHECK: xorps %xmm0, %xmm0
+; CHECK-NOT: %xmm
+; CHECK: ret
 }