mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
b00418af67
If all of the inputs are zero/any_extended, create a new simple BV which can be further optimized by other BV optimizations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143297 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
354 B
LLVM
17 lines
354 B
LLVM
; RUN: llc < %s -march=x86-64 -mcpu=corei7 | FileCheck %s
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
;CHECK: ltstore
|
|
;CHECK: pshufd
|
|
;CHECK: pshufd
|
|
;CHECK: ret
|
|
define void @ltstore() {
|
|
entry:
|
|
%in = load <4 x i32>* undef
|
|
%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>* undef
|
|
ret void
|
|
}
|
|
|