mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 06:04:47 +00:00
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. llvm-svn: 161155
This commit is contained in:
parent
78b8d454cc
commit
d591c838db
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user