xref: /aosp_15_r20/external/llvm/test/MC/Sparc/sparc-coproc.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker! RUN: llvm-mc %s -arch=sparc -show-encoding | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker        ! CHECK: ld [%i1], %c4        ! encoding: [0xc9,0x86,0x40,0x00]
4*9880d681SAndroid Build Coastguard Worker        ! CHECK: ld [%i1+-15], %c4    ! encoding: [0xc9,0x86,0x7f,0xf1]
5*9880d681SAndroid Build Coastguard Worker        ! CHECK: ld [%i1+%o3], %c4    ! encoding: [0xc9,0x86,0x40,0x0b]
6*9880d681SAndroid Build Coastguard Worker        ! CHECK: ld [%i7], %c4        ! encoding: [0xc9,0x87,0xc0,0x00]
7*9880d681SAndroid Build Coastguard Worker        ! CHECK: ld [%i1], %c19       ! encoding: [0xe7,0x86,0x40,0x00]
8*9880d681SAndroid Build Coastguard Worker        ld [%i1], %c4
9*9880d681SAndroid Build Coastguard Worker        ld [%i1 - 15], %c4
10*9880d681SAndroid Build Coastguard Worker        ld [%i1 +%o3], %c4
11*9880d681SAndroid Build Coastguard Worker        ld [%i7], %c4
12*9880d681SAndroid Build Coastguard Worker        ld [%i1], %c19
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker        ! CHECK: ldd [%i1], %c4       ! encoding: [0xc9,0x9e,0x40,0x00]
16*9880d681SAndroid Build Coastguard Worker        ! CHECK: ldd [%i7], %c4       ! encoding: [0xc9,0x9f,0xc0,0x00]
17*9880d681SAndroid Build Coastguard Worker        ! CHECK: ldd [%i7+200], %c4   ! encoding: [0xc9,0x9f,0xe0,0xc8]
18*9880d681SAndroid Build Coastguard Worker        ! CHECK: ldd [%i7+%o3], %c4   ! encoding: [0xc9,0x9f,0xc0,0x0b]
19*9880d681SAndroid Build Coastguard Worker        ! CHECK: ldd [%i1], %c30      ! encoding: [0xfd,0x9e,0x40,0x00]
20*9880d681SAndroid Build Coastguard Worker        ldd [%i1], %c4
21*9880d681SAndroid Build Coastguard Worker        ldd [%i7], %c4
22*9880d681SAndroid Build Coastguard Worker        ldd [%i7 + 200], %c4
23*9880d681SAndroid Build Coastguard Worker        ldd [%i7+%o3], %c4
24*9880d681SAndroid Build Coastguard Worker        ldd [%i1], %c30
25*9880d681SAndroid Build Coastguard Worker
26*9880d681SAndroid Build Coastguard Worker
27*9880d681SAndroid Build Coastguard Worker        ! CHECK: st %c4, [%i1]        ! encoding: [0xc9,0xa6,0x40,0x00]
28*9880d681SAndroid Build Coastguard Worker        ! CHECK: st %c4, [%i7]        ! encoding: [0xc9,0xa7,0xc0,0x00]
29*9880d681SAndroid Build Coastguard Worker        ! CHECK: st %c4, [%i7+48]     ! encoding: [0xc9,0xa7,0xe0,0x30]
30*9880d681SAndroid Build Coastguard Worker        ! CHECK: st %c4, [%i4+%o2]    ! encoding: [0xc9,0xa7,0x00,0x0a]
31*9880d681SAndroid Build Coastguard Worker        ! CHECK: st %c19, [%i1]       ! encoding: [0xe7,0xa6,0x40,0x00]
32*9880d681SAndroid Build Coastguard Worker        st %c4, [%i1]
33*9880d681SAndroid Build Coastguard Worker        st %c4, [%i7]
34*9880d681SAndroid Build Coastguard Worker        st %c4, [%i7+48]
35*9880d681SAndroid Build Coastguard Worker        st %c4, [%i4+%o2]
36*9880d681SAndroid Build Coastguard Worker        st %c19, [%i1]
37*9880d681SAndroid Build Coastguard Worker
38*9880d681SAndroid Build Coastguard Worker
39*9880d681SAndroid Build Coastguard Worker        ! CHECK: std %c4, [%i1]       ! encoding: [0xc9,0xbe,0x40,0x00]
40*9880d681SAndroid Build Coastguard Worker        ! CHECK: std %c4, [%i7]       ! encoding: [0xc9,0xbf,0xc0,0x00]
41*9880d681SAndroid Build Coastguard Worker        ! CHECK: std %c4, [%i2+-240]  ! encoding: [0xc9,0xbe,0xbf,0x10]
42*9880d681SAndroid Build Coastguard Worker        ! CHECK: std %c4, [%i1+%o5]   ! encoding: [0xc9,0xbe,0x40,0x0d]
43*9880d681SAndroid Build Coastguard Worker        ! CHECK: std %c30, [%i1]      ! encoding: [0xfd,0xbe,0x40,0x00]
44*9880d681SAndroid Build Coastguard Worker        std %c4, [%i1]
45*9880d681SAndroid Build Coastguard Worker        std %c4, [%i7]
46*9880d681SAndroid Build Coastguard Worker        std %c4, [%i2-240]
47*9880d681SAndroid Build Coastguard Worker        std %c4, [%i1+%o5]
48*9880d681SAndroid Build Coastguard Worker        std %c30, [%i1]
49*9880d681SAndroid Build Coastguard Worker
50*9880d681SAndroid Build Coastguard Worker
51*9880d681SAndroid Build Coastguard Worker        ! CHECK: ld [%i5], %csr       ! encoding: [0xc1,0x8f,0x40,0x00]
52*9880d681SAndroid Build Coastguard Worker        ! CHECK: ld [%l2+3], %csr     ! encoding: [0xc1,0x8c,0xa0,0x03]
53*9880d681SAndroid Build Coastguard Worker        ! CHECK: ld [%l4+%l5], %csr   ! encoding: [0xc1,0x8d,0x00,0x15]
54*9880d681SAndroid Build Coastguard Worker        ld [%i5], %csr
55*9880d681SAndroid Build Coastguard Worker        ld [%l2+3], %csr
56*9880d681SAndroid Build Coastguard Worker        ld [%l4+%l5], %csr
57*9880d681SAndroid Build Coastguard Worker
58*9880d681SAndroid Build Coastguard Worker
59*9880d681SAndroid Build Coastguard Worker        ! CHECK: st %csr, [%i2]       ! encoding: [0xc1,0xae,0x80,0x00]
60*9880d681SAndroid Build Coastguard Worker        ! CHECK: st %csr, [%i2+31]    ! encoding: [0xc1,0xae,0xa0,0x1f]
61*9880d681SAndroid Build Coastguard Worker        ! CHECK: st %csr, [%i2+%o2]   ! encoding: [0xc1,0xae,0x80,0x0a]
62*9880d681SAndroid Build Coastguard Worker        st %csr, [%i2]
63*9880d681SAndroid Build Coastguard Worker        st %csr, [%i2+31]
64*9880d681SAndroid Build Coastguard Worker        st %csr, [%i2+%o2]
65*9880d681SAndroid Build Coastguard Worker
66*9880d681SAndroid Build Coastguard Worker        ! CHECK: std %cq, [%o3]       ! encoding: [0xc1,0xb2,0xc0,0x00]
67*9880d681SAndroid Build Coastguard Worker        ! CHECK: std %cq, [%o3+-93]   ! encoding: [0xc1,0xb2,0xff,0xa3]
68*9880d681SAndroid Build Coastguard Worker        ! CHECK: std %cq, [%o3+%l5]   ! encoding: [0xc1,0xb2,0xc0,0x15]
69*9880d681SAndroid Build Coastguard Worker        std %cq, [%o3]
70*9880d681SAndroid Build Coastguard Worker        std %cq, [%o3-93]
71*9880d681SAndroid Build Coastguard Worker        std %cq, [%o3+%l5]
72*9880d681SAndroid Build Coastguard Worker