Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git] / llvm / test / CodeGen / AVR / pseudo / STSWKRr.mir
blobcd45febd012ae2e78c8ac132f2aaf2fff02ff2b6
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.
7 --- |
8   target triple = "avr--"
9   define void @test_stswkrr() {
10   entry:
11     ret void
12   }
13 ...
15 ---
16 name:            test_stswkrr
17 body: |
18   bb.0.entry:
19     liveins: $r31r30
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
29     STSWKRr 2559, $r31r30
30 ...