llvm.org GIT mirror llvm / 25fa9a4
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 NAKAMURA Takumi 7 years ago
1 changed file(s) with 6 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
22 define <2 x double> @foo() nounwind {
33 ret <2 x double> bitcast (<2 x i64> to <2 x double>)
44 ; CHECK: foo:
5 ; CHECK: pcmpeqd %xmm{{[0-9]+}}, %xmm{{[0-9]+}}
6 ; CHECK-NEXT: ret
5 ; CHECK: pcmpeqd %xmm0, %xmm0
6 ; CHECK-NOT: %xmm
7 ; CHECK: ret
78 }
89 define <2 x double> @bar() nounwind {
910 ret <2 x double> bitcast (<2 x i64> to <2 x double>)
1011 ; CHECK: bar:
11 ; CHECK: xorps %xmm{{[0-9]+}}, %xmm{{[0-9]+}}
12 ; CHECK-NEXT: ret
12 ; CHECK: xorps %xmm0, %xmm0
13 ; CHECK-NOT: %xmm
14 ; CHECK: ret
1315 }