1 ; RUN: llc < %s -march=avr | FileCheck %s
3 ; The bug can be found here:
4 ; https://github.com/rust-lang/rust/issues/98167
6 ; In this test, `extractvalue` + `call` generate a copy with overlapping
7 ; registers (`$r25r24 = COPY $r24r23`) that used to be expanded incorrectly.
12 ; CHECK-NEXT: mov r25, r24
13 ; CHECK-NEXT: mov r24, r23
14 ; CHECK-NEXT: rcall bar
15 %1 = call { i8, i16 } @foo()
16 %2 = extractvalue { i8, i16 } %1, 1
17 call void @bar(i16 %2)
21 declare { i8, i16 } @foo()
22 declare void @bar(i16 %0)