[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / AVR / inst-st.s
blob8d9a4a6fe1527ae403dfeffd372520ad303b1a80
1 ; RUN: llvm-mc -triple avr -mattr=sram -show-encoding < %s | FileCheck %s
4 foo:
5 ; Normal
7 st X, r10
8 st X, r17
10 st Y, r30
11 st Y, r19
13 st Z, r10
14 st Z, r2
16 ; Postincrement
18 st X+, r10
19 st X+, r17
21 st Y+, r30
22 st Y+, r19
24 st Z+, r10
25 st Z+, r2
27 ; Predecrement
29 st -X, r10
30 st -X, r17
32 st -Y, r30
33 st -Y, r19
35 st -Z, r10
36 st -Z, r2
38 ; Normal
40 ; CHECK: st X, r10 ; encoding: [0xac,0x92]
41 ; CHECK: st X, r17 ; encoding: [0x1c,0x93]
43 ; CHECK: st Y, r30 ; encoding: [0xe8,0x83]
44 ; CHECK: st Y, r19 ; encoding: [0x38,0x83]
46 ; CHECK: st Z, r10 ; encoding: [0xa0,0x82]
47 ; CHECK: st Z, r2 ; encoding: [0x20,0x82]
50 ; Postincrement
52 ; CHECK: st X+, r10 ; encoding: [0xad,0x92]
53 ; CHECK: st X+, r17 ; encoding: [0x1d,0x93]
55 ; CHECK: st Y+, r30 ; encoding: [0xe9,0x93]
56 ; CHECK: st Y+, r19 ; encoding: [0x39,0x93]
58 ; CHECK: st Z+, r10 ; encoding: [0xa1,0x92]
59 ; CHECK: st Z+, r2 ; encoding: [0x21,0x92]
62 ; Predecrement
64 ; CHECK: st -X, r10 ; encoding: [0xae,0x92]
65 ; CHECK: st -X, r17 ; encoding: [0x1e,0x93]
67 ; CHECK: st -Y, r30 ; encoding: [0xea,0x93]
68 ; CHECK: st -Y, r19 ; encoding: [0x3a,0x93]
70 ; CHECK: st -Z, r10 ; encoding: [0xa2,0x92]
71 ; CHECK: st -Z, r2 ; encoding: [0x22,0x92]