Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AVR / inst-lds.s
blob0e4bfb345d827a2c54a7fd51a22aa72904cf9449
1 ; RUN: llvm-mc -triple avr -mattr=sram -show-encoding < %s | FileCheck %s
2 ; RUN: llvm-mc -filetype=obj -triple avr -mattr=sram < %s | llvm-objdump --no-print-imm-hex -dr --mattr=sram - | FileCheck -check-prefix=CHECK-INST %s
5 foo:
6 lds r16, 241
7 lds r29, 190
8 lds r22, 172
9 lds r27, 92
10 lds r4, SYMBOL+12
11 lds r4, r25
12 lds r4, x+2
14 ; CHECK: lds r16, 241 ; encoding: [0x00,0x91,0xf1,0x00]
15 ; CHECK: lds r29, 190 ; encoding: [0xd0,0x91,0xbe,0x00]
16 ; CHECK: lds r22, 172 ; encoding: [0x60,0x91,0xac,0x00]
17 ; CHECK: lds r27, 92 ; encoding: [0xb0,0x91,0x5c,0x00]
18 ; CHECK: lds r4, SYMBOL+12 ; encoding: [0x40,0x90,A,A]
19 ; CHECK: ; fixup A - offset: 2, value: SYMBOL+12, kind: fixup_16
20 ; CHECK: lds r4, r25 ; encoding: [0x40,0x90,A,A]
21 ; CHECK: ; fixup A - offset: 2, value: r25, kind: fixup_16
22 ; CHECK: lds r4, x+2 ; encoding: [0x40,0x90,A,A]
23 ; CHECK: ; fixup A - offset: 2, value: x+2, kind: fixup_16
25 ; CHECK-INST: lds r16, 241
26 ; CHECK-INST: lds r29, 190
27 ; CHECK-INST: lds r22, 172
28 ; CHECK-INST: lds r27, 92
29 ; CHECK-INST: lds r4, 0
30 ; CHECK-INST: R_AVR_16 SYMBOL+0xc
31 ; CHECK-INST: lds r4, 0
32 ; CHECK-INST: R_AVR_16 r25
33 ; CHECK-INST: lds r4, 0
34 ; CHECK-INST: R_AVR_16 x+0x2