1 ; RUN: llc < %s -mtriple=nvptx-unknown-unknown | FileCheck %s
3 %struct.St8x4 = type { [4 x i64] }
5 define dso_local void @caller_St8x4(ptr nocapture noundef readonly byval(%struct.St8x4) align 8 %in, ptr nocapture noundef writeonly %ret) {
6 %call = tail call fastcc [4 x i64] @callee_St8x4(ptr noundef nonnull byval(%struct.St8x4) align 8 %in) #2
7 %.fca.0.extract = extractvalue [4 x i64] %call, 0
8 %.fca.1.extract = extractvalue [4 x i64] %call, 1
9 %.fca.2.extract = extractvalue [4 x i64] %call, 2
10 %.fca.3.extract = extractvalue [4 x i64] %call, 3
11 store i64 %.fca.0.extract, ptr %ret, align 8
12 %ref.tmp.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %ret, i64 8
13 store i64 %.fca.1.extract, ptr %ref.tmp.sroa.4.0..sroa_idx, align 8
14 %ref.tmp.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %ret, i64 16
15 store i64 %.fca.2.extract, ptr %ref.tmp.sroa.5.0..sroa_idx, align 8
16 %ref.tmp.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %ret, i64 24
17 store i64 %.fca.3.extract, ptr %ref.tmp.sroa.6.0..sroa_idx, align 8
21 define internal fastcc [4 x i64] @callee_St8x4(ptr nocapture noundef readonly byval(%struct.St8x4) align 8 %in) {
22 %1 = load i64, ptr %in, align 8
23 %arrayidx.1 = getelementptr inbounds [4 x i64], ptr %in, i64 0, i64 1
24 %2 = load i64, ptr %arrayidx.1, align 8
25 %arrayidx.2 = getelementptr inbounds [4 x i64], ptr %in, i64 0, i64 2
26 %3 = load i64, ptr %arrayidx.2, align 8
27 %arrayidx.3 = getelementptr inbounds [4 x i64], ptr %in, i64 0, i64 3
28 %4 = load i64, ptr %arrayidx.3, align 8
29 %5 = insertvalue [4 x i64] poison, i64 %1, 0
30 %6 = insertvalue [4 x i64] %5, i64 %2, 1
31 %7 = insertvalue [4 x i64] %6, i64 %3, 2
32 %oldret = insertvalue [4 x i64] %7, i64 %4, 3
36 define void @call_void() {