xref: /llvm-project/llvm/test/MC/Sparc/sparcv9-atomic-instructions.s (revision 252c42354eca54274ed7b10c32c73c6937478e8b)
1! RUN: llvm-mc %s -triple=sparcv9 -show-encoding | FileCheck %s
2
3        ! CHECK: membar #LoadLoad | #StoreLoad | #LoadStore | #StoreStore  ! encoding: [0x81,0x43,0xe0,0x0f]
4        membar 15
5
6        ! CHECK: membar #LoadLoad  ! encoding: [0x81,0x43,0xe0,0x01]
7        membar #LoadLoad
8
9        ! CHECK: membar #LoadLoad | #StoreStore  ! encoding: [0x81,0x43,0xe0,0x09]
10        membar #LoadLoad | #StoreStore
11
12        ! CHECK: membar #LoadLoad | #StoreLoad | #LoadStore | #StoreStore | #Lookaside | #MemIssue | #Sync  ! encoding: [0x81,0x43,0xe0,0x7f]
13        membar #LoadLoad | #StoreLoad | #LoadStore | #StoreStore | #Lookaside | #MemIssue | #Sync
14
15        ! CHECK: swapa [%i0+6] %asi, %o2   ! encoding: [0xd4,0xfe,0x20,0x06]
16        swapa [%i0+6] %asi, %o2
17
18        ! CHECK: ldstuba [%i0+2] %asi, %g1 ! encoding: [0xc2,0xee,0x20,0x02]
19        ldstuba [%i0+2] %asi, %g1
20