Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AVR / inst-swap.s
blob4a265639f70ac7f0bca773983bb54ba1373ac020
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
5 foo:
7 swap r31
8 swap r25
9 swap r5
10 swap r0
12 ; CHECK: swap r31 ; encoding: [0xf2,0x95]
13 ; CHECK: swap r25 ; encoding: [0x92,0x95]
14 ; CHECK: swap r5 ; encoding: [0x52,0x94]
15 ; CHECK: swap r0 ; encoding: [0x02,0x94]
17 ; CHECK-INST: swap r31
18 ; CHECK-INST: swap r25
19 ; CHECK-INST: swap r5
20 ; CHECK-INST: swap r0