1 # RUN: llc -O0 -run-pass=avr-expand-pseudo %s -o - | FileCheck %s
2 # RUN: llc -O0 -run-pass=avr-expand-pseudo -mcpu=atxmega64a1 %s -o - \
3 # RUN: | FileCheck --check-prefix=XMEGA %s
5 # This test checks the expansion of the 16-bit STSWRdK pseudo instruction.
8 target triple = "avr--"
9 define void @test_stswkrr() {
21 ; CHECK-LABEL: test_stswkrr
22 ; CHECK: STSKRr 2560, $r31
23 ; CHECK-NEXT: STSKRr 2559, $r30
25 ; XMEGA-LABEL: test_stswkrr
26 ; XMEGA: STSKRr 2559, $r30
27 ; XMEGA-NEXT: STSKRr 2560, $r31