mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
86dc3f3739
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179786 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
356 B
LLVM
13 lines
356 B
LLVM
; RUN: opt < %s -instcombine -S | FileCheck %s
|
|
|
|
define void @test(<4 x i32> %v, i64 *%r1, i64 *%r2) {
|
|
;CHECK: %1 = extractelement <4 x i32> %v, i32 0
|
|
;CHECK: %2 = zext i32 %1 to i64
|
|
%1 = zext <4 x i32> %v to <4 x i64>
|
|
%2 = extractelement <4 x i64> %1, i32 0
|
|
store i64 %2, i64 *%r1
|
|
store i64 %2, i64 *%r2
|
|
ret void
|
|
}
|
|
|