1@ RUN: llvm-mc -triple=thumbv8 -show-encoding < %s | FileCheck %s 2@ RUN: not llvm-mc -triple=thumbv7 -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=CHECK-V7 3 ldaexb r3, [r4] 4 ldaexh r2, [r5] 5 ldaex r1, [r7] 6 ldaexd r6, r7, [r8] 7 8@ CHECK: ldaexb r3, [r4] @ encoding: [0xd4,0xe8,0xcf,0x3f] 9@ CHECK: ldaexh r2, [r5] @ encoding: [0xd5,0xe8,0xdf,0x2f] 10@ CHECK: ldaex r1, [r7] @ encoding: [0xd7,0xe8,0xef,0x1f] 11@ CHECK: ldaexd r6, r7, [r8] @ encoding: [0xd8,0xe8,0xff,0x67] 12@ CHECK-V7: error: instruction requires: acquire/release 13@ CHECK-V7: error: instruction requires: acquire/release 14@ CHECK-V7: error: instruction requires: acquire/release 15@ CHECK-V7: error: instruction requires: acquire/release 16 17@ GNU alias 18 ldaexd r6, [r8] 19@ CHECK: ldaexd r6, r7, [r8] @ encoding: [0xd8,0xe8,0xff,0x67] 20 21 stlexb r1, r3, [r4] 22 stlexh r4, r2, [r5] 23 stlex r2, r1, [r7] 24 stlexd r6, r2, r3, [r8] 25@ CHECK: stlexb r1, r3, [r4] @ encoding: [0xc4,0xe8,0xc1,0x3f] 26@ CHECK: stlexh r4, r2, [r5] @ encoding: [0xc5,0xe8,0xd4,0x2f] 27@ CHECK: stlex r2, r1, [r7] @ encoding: [0xc7,0xe8,0xe2,0x1f] 28@ CHECK: stlexd r6, r2, r3, [r8] @ encoding: [0xc8,0xe8,0xf6,0x23] 29@ CHECK-V7: error: instruction requires: acquire/release 30@ CHECK-V7: error: instruction requires: acquire/release 31@ CHECK-V7: error: instruction requires: acquire/release 32@ CHECK-V7: error: instruction requires: acquire/release 33 34@ GNU alias 35 stlexd r6, r2, [r8] 36@ CHECK: stlexd r6, r2, r3, [r8] @ encoding: [0xc8,0xe8,0xf6,0x23] 37 38 lda r5, [r6] 39 ldab r5, [r6] 40 ldah r12, [r9] 41@ CHECK: lda r5, [r6] @ encoding: [0xd6,0xe8,0xaf,0x5f] 42@ CHECK: ldab r5, [r6] @ encoding: [0xd6,0xe8,0x8f,0x5f] 43@ CHECK: ldah r12, [r9] @ encoding: [0xd9,0xe8,0x9f,0xcf] 44@ CHECK-V7: error: instruction requires: acquire/release 45@ CHECK-V7: error: instruction requires: acquire/release 46@ CHECK-V7: error: instruction requires: acquire/release 47 48 stl r3, [r0] 49 stlb r2, [r1] 50 stlh r2, [r3] 51@ CHECK: stl r3, [r0] @ encoding: [0xc0,0xe8,0xaf,0x3f] 52@ CHECK: stlb r2, [r1] @ encoding: [0xc1,0xe8,0x8f,0x2f] 53@ CHECK: stlh r2, [r3] @ encoding: [0xc3,0xe8,0x9f,0x2f] 54@ CHECK-V7: error: instruction requires: acquire/release 55@ CHECK-V7: error: instruction requires: acquire/release 56@ CHECK-V7: error: instruction requires: acquire/release 57