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

20 lines
599 B
LLVM

; RUN: opt -S -mtriple=x86_64-unknown-linux -mcpu=corei7 -slp-vectorizer < %s | FileCheck %s
%struct.S = type { i8*, i8* }
@kS0 = common global %struct.S zeroinitializer, align 8
define { i64, i64 } @getS() {
entry:
%0 = load i64, i64* bitcast (%struct.S* @kS0 to i64*), align 8
%1 = load i64, i64* bitcast (i8** getelementptr inbounds (%struct.S, %struct.S* @kS0, i64 0, i32 1) to i64*), align 8
%2 = insertvalue { i64, i64 } undef, i64 %0, 0
%3 = insertvalue { i64, i64 } %2, i64 %1, 1
ret { i64, i64 } %3
}
; CHECK: load i64
; CHECK-NOT: load <2 x i64>
; CHECK-NOT: extractelement