mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
23e31011fb
too. Patch by Jeff Muizelaar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135789 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
832 B
LLVM
27 lines
832 B
LLVM
; RUN: llc < %s -march=x86-64 | FileCheck %s
|
|
|
|
define <2 x double> @ld(<2 x double> %p) nounwind optsize ssp {
|
|
; CHECK: unpcklpd
|
|
%shuffle = shufflevector <2 x double> %p, <2 x double> undef, <2 x i32> zeroinitializer
|
|
ret <2 x double> %shuffle
|
|
}
|
|
|
|
define <2 x double> @hd(<2 x double> %p) nounwind optsize ssp {
|
|
; CHECK: unpckhpd
|
|
%shuffle = shufflevector <2 x double> %p, <2 x double> undef, <2 x i32> <i32 1, i32 1>
|
|
ret <2 x double> %shuffle
|
|
}
|
|
|
|
define <2 x i64> @ldi(<2 x i64> %p) nounwind optsize ssp {
|
|
; CHECK: punpcklqdq
|
|
%shuffle = shufflevector <2 x i64> %p, <2 x i64> undef, <2 x i32> zeroinitializer
|
|
ret <2 x i64> %shuffle
|
|
}
|
|
|
|
define <2 x i64> @hdi(<2 x i64> %p) nounwind optsize ssp {
|
|
; CHECK: punpckhqdq
|
|
%shuffle = shufflevector <2 x i64> %p, <2 x i64> undef, <2 x i32> <i32 1, i32 1>
|
|
ret <2 x i64> %shuffle
|
|
}
|
|
|