Use "isa" since the variable isn't used.
[llvm-complete.git] / test / MC / AVR / inst-ld.s
blob3b0ade182518b3f52fb2c6daa71c9ebe69670cff
1 ; RUN: llvm-mc -triple avr -mattr=sram -show-encoding < %s | FileCheck %s
4 foo:
6 ; Normal
8 ld r10, X
9 ld r17, X
11 ld r30, Y
12 ld r19, Y
14 ld r10, Z
15 ld r2, Z
17 ; Postincremenet
19 ld r10, X+
20 ld r17, X+
22 ld r30, Y+
23 ld r19, Y+
25 ld r10, Z+
26 ld r2, Z+
28 ; Predecrement
30 ld r10, -X
31 ld r17, -X
33 ld r30, -Y
34 ld r19, -Y
36 ld r10, -Z
37 ld r2, -Z
40 ; Normal
42 ; CHECK: ld r10, X ; encoding: [0xac,0x90]
43 ; CHECK: ld r17, X ; encoding: [0x1c,0x91]
45 ; CHECK: ld r30, Y ; encoding: [0xe8,0x81]
46 ; CHECK: ld r19, Y ; encoding: [0x38,0x81]
48 ; CHECK: ld r10, Z ; encoding: [0xa0,0x80]
49 ; CHECK: ld r2, Z ; encoding: [0x20,0x80]
52 ; Postincrement
54 ; CHECK: ld r10, X+ ; encoding: [0xad,0x90]
55 ; CHECK: ld r17, X+ ; encoding: [0x1d,0x91]
57 ; CHECK: ld r30, Y+ ; encoding: [0xe9,0x91]
58 ; CHECK: ld r19, Y+ ; encoding: [0x39,0x91]
60 ; CHECK: ld r10, Z+ ; encoding: [0xa1,0x90]
61 ; CHECK: ld r2, Z+ ; encoding: [0x21,0x90]
64 ; Predecrement
66 ; CHECK: ld r10, -X ; encoding: [0xae,0x90]
67 ; CHECK: ld r17, -X ; encoding: [0x1e,0x91]
69 ; CHECK: ld r30, -Y ; encoding: [0xea,0x91]
70 ; CHECK: ld r19, -Y ; encoding: [0x3a,0x91]
72 ; CHECK: ld r10, -Z ; encoding: [0xa2,0x90]
73 ; CHECK: ld r2, -Z ; encoding: [0x22,0x90]