Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AVR / registers.s
blob62872a83a87c73e795af38f8a81944381310e8f0
1 ; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
2 ; RUN: llvm-mc -filetype=obj -triple avr < %s | llvm-objdump -d - | FileCheck -check-prefix=CHECK-INST %s
4 ; Test register aliases: the upper 6 registers have aliases that can be used in
5 ; assembly.
7 foo:
8 inc xl
9 inc xh
10 inc yl
11 inc yh
12 inc zl
13 inc zh
15 inc XL ; test uppercase
17 ; CHECK: inc r26 ; encoding: [0xa3,0x95]
18 ; CHECK: inc r27 ; encoding: [0xb3,0x95]
19 ; CHECK: inc r28 ; encoding: [0xc3,0x95]
20 ; CHECK: inc r29 ; encoding: [0xd3,0x95]
21 ; CHECK: inc r30 ; encoding: [0xe3,0x95]
22 ; CHECK: inc r31 ; encoding: [0xf3,0x95]
24 ; CHECK: inc r26 ; encoding: [0xa3,0x95]
26 ; CHECK-INST: inc r26
27 ; CHECK-INST: inc r27
28 ; CHECK-INST: inc r28
29 ; CHECK-INST: inc r29
30 ; CHECK-INST: inc r30
31 ; CHECK-INST: inc r31
33 ; CHECK-INST: inc r26