diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-08-02 06:33:58 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-08-02 06:33:58 +0000 |
commit | 25fa9a4890655b8c40e2389e8a81ce2e7491fd40 (patch) | |
tree | ac2a1a9bbea7da1a200924ee8a14d9366ec4f800 /test | |
parent | d7d003c2b7b7f657eed364e4ac06f4ab32fc8c2d (diff) | |
download | external_llvm-25fa9a4890655b8c40e2389e8a81ce2e7491fd40.zip external_llvm-25fa9a4890655b8c40e2389e8a81ce2e7491fd40.tar.gz external_llvm-25fa9a4890655b8c40e2389e8a81ce2e7491fd40.tar.bz2 |
llvm/test/CodeGen/X86/fold-pcmpeqd-1.ll: Rewrite expressions to pass regardless of PR11031.
- 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
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/fold-pcmpeqd-1.ll | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/CodeGen/X86/fold-pcmpeqd-1.ll b/test/CodeGen/X86/fold-pcmpeqd-1.ll index a35dccd..5d817ad 100644 --- a/test/CodeGen/X86/fold-pcmpeqd-1.ll +++ b/test/CodeGen/X86/fold-pcmpeqd-1.ll @@ -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 } |