[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Sparc / sparcv9-atomic-instructions.s
blob449450f70f62b971b7db3cc230618a27a6925f6c
1 ! RUN: llvm-mc %s -arch=sparcv9 -show-encoding | FileCheck %s
3 ! CHECK: membar #LoadLoad | #StoreLoad | #LoadStore | #StoreStore ! encoding: [0x81,0x43,0xe0,0x0f]
4 membar 15
6 ! CHECK: membar #LoadLoad ! encoding: [0x81,0x43,0xe0,0x01]
7 membar #LoadLoad
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: cas [%i0], %l6, %o2 ! encoding: [0xd5,0xe6,0x10,0x16]
16 cas [%i0], %l6, %o2
18 ! CHECK: casx [%i0], %l6, %o2 ! encoding: [0xd5,0xf6,0x10,0x16]
19 casx [%i0], %l6, %o2