mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-16 11:05:54 +00:00
19 lines
627 B
LLVM
19 lines
627 B
LLVM
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
|
||
|
|
||
|
; CHECK-NOT: vunpck
|
||
|
; CHECK: vinsertf128 $1
|
||
|
define <8 x float> @A(<8 x float> %a) nounwind uwtable readnone ssp {
|
||
|
entry:
|
||
|
%shuffle = shufflevector <8 x float> %a, <8 x float> undef, <8 x i32> <i32 8, i32 8, i32 8, i32 8, i32 0, i32 1, i32 2, i32 3>
|
||
|
ret <8 x float> %shuffle
|
||
|
}
|
||
|
|
||
|
; CHECK-NOT: vunpck
|
||
|
; CHECK: vinsertf128 $1
|
||
|
define <4 x double> @B(<4 x double> %a) nounwind uwtable readnone ssp {
|
||
|
entry:
|
||
|
%shuffle = shufflevector <4 x double> %a, <4 x double> undef, <4 x i32> <i32 4, i32 4, i32 0, i32 1>
|
||
|
ret <4 x double> %shuffle
|
||
|
}
|
||
|
|