mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
d16c8d0d33
shuffle node because it could introduce new shuffle nodes that were not supported efficiently by the target. 2. Add a more restrictive shuffle-of-shuffle optimization for cases where the second shuffle reverses the transformation of the first shuffle. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154266 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
376 B
LLVM
17 lines
376 B
LLVM
; RUN: llc < %s -march=x86-64 -mcpu=corei7 | FileCheck %s
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
;CHECK: ltstore
|
|
;CHECK: movq
|
|
;CHECK: movq
|
|
;CHECK: ret
|
|
define void @ltstore(<4 x i32>* %pA, <2 x i32>* %pB) {
|
|
entry:
|
|
%in = load <4 x i32>* %pA
|
|
%j = shufflevector <4 x i32> %in, <4 x i32> undef, <2 x i32> <i32 0, i32 1>
|
|
store <2 x i32> %j, <2 x i32>* %pB
|
|
ret void
|
|
}
|
|
|