[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / Sparc / sparc-special-registers.s
blob7667abea0144f3e612d7d7e249c0d8b43334461d
1 ! RUN: llvm-mc %s -arch=sparc -show-encoding | FileCheck %s
2 ! RUN: llvm-mc %s -arch=sparcv9 -show-encoding | FileCheck %s
4 ! CHECK: rd %y, %i0 ! encoding: [0xb1,0x40,0x00,0x00]
5 rd %y, %i0
7 ! CHECK: rd %asr1, %i0 ! encoding: [0xb1,0x40,0x40,0x00]
8 rd %asr1, %i0
10 ! CHECK: wr %i0, 5, %y ! encoding: [0x81,0x86,0x20,0x05]
11 wr %i0, 5, %y
13 ! CHECK: wr %i0, %i1, %asr15 ! encoding: [0x9f,0x86,0x00,0x19]
14 wr %i0, %i1, %asr15
16 ! CHECK: rd %asr15, %g0 ! encoding: [0x81,0x43,0xc0,0x00]
17 rd %asr15, %g0
19 ! CHECK: rd %psr, %i0 ! encoding: [0xb1,0x48,0x00,0x00]
20 rd %psr, %i0
22 ! CHECK: rd %wim, %i0 ! encoding: [0xb1,0x50,0x00,0x00]
23 rd %wim, %i0
25 ! CHECK: rd %tbr, %i0 ! encoding: [0xb1,0x58,0x00,0x00]
26 rd %tbr, %i0
28 ! CHECK: wr %i0, 5, %psr ! encoding: [0x81,0x8e,0x20,0x05]
29 wr %i0, 5, %psr
31 ! CHECK: wr %i0, 5, %wim ! encoding: [0x81,0x96,0x20,0x05]
32 wr %i0, 5, %wim
34 ! CHECK: wr %i0, 5, %tbr ! encoding: [0x81,0x9e,0x20,0x05]
35 wr %i0, 5, %tbr
37 ! CHECK: rd %asr6, %i0 ! encoding: [0xb1,0x41,0x80,0x00]
38 rd %fprs, %i0
40 ! CHECK: wr %i0, 7, %asr6 ! encoding: [0x8d,0x86,0x20,0x07]
41 wr %i0, 7, %fprs
43 ! CHECK: ld [%g2+20], %fsr ! encoding: [0xc1,0x08,0xa0,0x14]
44 ld [%g2 + 20],%fsr
46 ! CHECK: ld [%g2+%i5], %fsr ! encoding: [0xc1,0x08,0x80,0x1d]
47 ld [%g2 + %i5],%fsr
49 ! CHECK: st %fsr, [%g2+20] ! encoding: [0xc1,0x28,0xa0,0x14]
50 st %fsr,[%g2 + 20]
52 ! CHECK: st %fsr, [%g2+%i5] ! encoding: [0xc1,0x28,0x80,0x1d]
53 st %fsr,[%g2 + %i5]
55 ! CHECK: std %fq, [%g6+%i2] ! encoding: [0xc1,0x31,0x80,0x1a]
56 std %fq, [%g6 + %i2]