mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
6292eceea0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138588 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
462 B
LLVM
15 lines
462 B
LLVM
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
|
|
|
|
; CHECK: vmovddup %ymm
|
|
define <4 x i64> @A(<4 x i64> %a) {
|
|
%c = shufflevector <4 x i64> %a, <4 x i64> undef, <4 x i32> <i32 0, i32 0, i32 2, i32 2>
|
|
ret <4 x i64> %c
|
|
}
|
|
|
|
; CHECK: vmovddup (%
|
|
define <4 x i64> @B(<4 x i64>* %ptr) {
|
|
%a = load <4 x i64>* %ptr
|
|
%c = shufflevector <4 x i64> %a, <4 x i64> undef, <4 x i32> <i32 0, i32 0, i32 2, i32 2>
|
|
ret <4 x i64> %c
|
|
}
|