Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AVR / inst-xch.s
blob36d30e2bc52bf94b7c508adae1ce254c1ade9e05
1 ; RUN: llvm-mc -triple avr -mattr=rmw -show-encoding < %s | FileCheck %s
2 ; RUN: llvm-mc -filetype=obj -triple avr -mattr=rmw < %s | llvm-objdump -d --mattr=rmw - | FileCheck -check-prefix=CHECK-INST %s
5 foo:
7 xch Z, r13
8 xch Z, r0
9 xch Z, r31
10 xch Z, r3
12 ; CHECK: xch Z, r13 ; encoding: [0xd4,0x92]
13 ; CHECK: xch Z, r0 ; encoding: [0x04,0x92]
14 ; CHECK: xch Z, r31 ; encoding: [0xf4,0x93]
15 ; CHECK: xch Z, r3 ; encoding: [0x34,0x92]
17 ; CHECK-INST: xch Z, r13
18 ; CHECK-INST: xch Z, r0
19 ; CHECK-INST: xch Z, r31
20 ; CHECK-INST: xch Z, r3