Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AVR / inst-movw.s
blobb93b530e9a701c718e479931a6df17f3c095e95e
1 ; RUN: llvm-mc -triple avr -mattr=movw -show-encoding < %s | FileCheck %s
2 ; RUN: llvm-mc -filetype=obj -triple avr -mattr=movw < %s | llvm-objdump -d --mattr=movw - | FileCheck -check-prefix=CHECK-INST %s
5 foo:
7 movw r10, r8
8 movw r12, r16
9 movw r20, r22
10 movw r8, r12
11 movw r0, r0
12 movw r0, r30
13 movw r30, r30
14 movw r30, r0
16 ; CHECK: movw r10, r8 ; encoding: [0x54,0x01]
17 ; CHECK: movw r12, r16 ; encoding: [0x68,0x01]
18 ; CHECK: movw r20, r22 ; encoding: [0xab,0x01]
19 ; CHECK: movw r8, r12 ; encoding: [0x46,0x01]
20 ; CHECK: movw r0, r0 ; encoding: [0x00,0x01]
21 ; CHECK: movw r0, r30 ; encoding: [0x0f,0x01]
22 ; CHECK: movw r30, r30 ; encoding: [0xff,0x01]
23 ; CHECK: movw r30, r0 ; encoding: [0xf0,0x01]
25 ; CHECK-INST: movw r10, r8
26 ; CHECK-INST: movw r12, r16
27 ; CHECK-INST: movw r20, r22
28 ; CHECK-INST: movw r8, r12
29 ; CHECK-INST: movw r0, r0
30 ; CHECK-INST: movw r0, r30
31 ; CHECK-INST: movw r30, r30
32 ; CHECK-INST: movw r30, r0