1 ! RUN
: llvm-mc
%s
-triple
=sparcv9
-show-encoding | FileCheck
%s
3 ! CHECK
: membar
#LoadLoad | #StoreLoad | #LoadStore | #StoreStore ! encoding: [0x81,0x43,0xe0,0x0f]
6 ! CHECK
: membar
#LoadLoad ! encoding: [0x81,0x43,0xe0,0x01]
9 ! CHECK
: membar
#LoadLoad | #StoreStore ! encoding: [0x81,0x43,0xe0,0x09]
10 membar
#LoadLoad | #StoreStore
12 ! CHECK
: membar
#LoadLoad | #StoreLoad | #LoadStore | #StoreStore | #Lookaside | #MemIssue | #Sync ! encoding: [0x81,0x43,0xe0,0x7f]
13 membar
#LoadLoad | #StoreLoad | #LoadStore | #StoreStore | #Lookaside | #MemIssue | #Sync
15 ! CHECK
: swapa
[%i0+
6] %asi
, %o2
! encoding
: [0xd4,0xfe,0x20,0x06]
16 swapa
[%i0+
6] %asi
, %o2
18 ! CHECK
: ldstuba
[%i0+
2] %asi
, %g1
! encoding
: [0xc2,0xee,0x20,0x02]
19 ldstuba
[%i0+
2] %asi
, %g1