Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

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
}