Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AVR / inst-ldd.s
blob66b2c04a68638e0c1556f084d4fb249806838ce2
1 ; RUN: llvm-mc -triple avr -mattr=sram -show-encoding < %s | FileCheck %s
2 ; RUN: llvm-mc -filetype=obj -triple avr -mattr=sram < %s \
3 ; RUN: | llvm-objdump -d --mattr=sram - | FileCheck --check-prefix=INST %s
5 foo:
6 ldd r2, Y+2
7 ldd r0, Y+0
9 ldd r9, Z+12
10 ldd r7, Z+30
12 ldd r9, Z+foo
14 ; CHECK: ldd r2, Y+2 ; encoding: [0x2a,0x80]
15 ; CHECK: ldd r0, Y+0 ; encoding: [0x08,0x80]
17 ; CHECK: ldd r9, Z+12 ; encoding: [0x94,0x84]
18 ; CHECK: ldd r7, Z+30 ; encoding: [0x76,0x8c]
20 ; CHECK: ldd r9, Z+foo ; encoding: [0x90'A',0x80'A']
21 ; CHECK: ; fixup A - offset: 0, value: +foo, kind: fixup_6
23 ; INST: ldd r2, Y+2
24 ; INST: ldd r0, Y+0
25 ; INST: ldd r9, Z+12
26 ; INST: ldd r7, Z+30