xref: /llvm-project/llvm/test/CodeGen/X86/pr18162.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s
2
3; Make sure we are not crashing on this one.
4
5target triple = "x86_64-unknown-linux-gnu"
6
7%"Iterator" = type { ptr }
8
9declare { i64, <2 x float> } @Call()
10declare ptr @CallPtr()
11
12define { i64, <2 x float> } @Foo(ptr %this) {
13entry:
14  %retval = alloca i32
15  %this.addr = alloca ptr
16  %this1 = load ptr, ptr %this.addr
17  %0 = load ptr, ptr %this1
18  %1 = call { i64, <2 x float> } @Call()
19  %2 = call ptr @CallPtr()
20  %3 = getelementptr { i64, <2 x float> }, ptr %2, i32 0, i32 1
21  %4 = extractvalue { i64, <2 x float> } %1, 1
22  store <2 x float> %4, ptr %3
23  %5 = load { i64, <2 x float> }, ptr %2
24  ret { i64, <2 x float> } %5
25}
26
27