mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-10 06:54:54 +00:00
3e5d5c53a0
The xorps instruction is smaller than pxor, so prefer that encoding. The ExecutionDepsFix pass will switch the encoding to pxor and xorpd when appropriate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143996 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
407 B
LLVM
18 lines
407 B
LLVM
; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
|
|
|
|
; Without any typed operations, always use the smaller xorps.
|
|
; CHECK: test
|
|
; CHECK: xorps
|
|
define <2 x double> @test() {
|
|
ret <2 x double> zeroinitializer
|
|
}
|
|
|
|
; Prefer a constant pool load here.
|
|
; CHECK: test2
|
|
; CHECK-NOT: shuf
|
|
; CHECK: movaps LCP
|
|
; CHECK-NEXT: ret
|
|
define <4 x i32> @test2() nounwind {
|
|
ret <4 x i32> < i32 0, i32 0, i32 1, i32 0 >
|
|
}
|