diff options
Diffstat (limited to 'llvm/test/MC/ARM/csdb.s')
-rw-r--r-- | llvm/test/MC/ARM/csdb.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/MC/ARM/csdb.s b/llvm/test/MC/ARM/csdb.s new file mode 100644 index 00000000000..4d78be40fa0 --- /dev/null +++ b/llvm/test/MC/ARM/csdb.s @@ -0,0 +1,8 @@ +@ RUN: llvm-mc -triple armv8a-none-eabi -show-encoding %s | FileCheck %s --check-prefix=ARM +@ RUN: llvm-mc -triple thumbv8a-none-eabi -show-encoding %s | FileCheck %s --check-prefix=THUMB +@ RUN: not llvm-mc -triple thumbv6m-none-eabi -show-encoding %s 2>&1 | FileCheck %s --check-prefix=ERROR + + csdb +@ ARM: csdb @ encoding: [0x14,0xf0,0x20,0xe3] +@ THUMB: csdb @ encoding: [0xaf,0xf3,0x14,0x80] +@ ERROR: error: instruction requires: thumb2 |