diff options
| author | Oliver Stannard <oliver.stannard@arm.com> | 2018-09-27 14:54:33 +0000 |
|---|---|---|
| committer | Oliver Stannard <oliver.stannard@arm.com> | 2018-09-27 14:54:33 +0000 |
| commit | a9a5eee1694833989739fc31045b48bdaacafaff (patch) | |
| tree | ca0e6a87dfb216df47928f0683b4026c41c485ef /llvm/test/MC/Disassembler/AArch64 | |
| parent | bb898704e99cc7ea0890da36c99cd63d98e2df53 (diff) | |
| download | bcm5719-llvm-a9a5eee1694833989739fc31045b48bdaacafaff.tar.gz bcm5719-llvm-a9a5eee1694833989739fc31045b48bdaacafaff.zip | |
[AArch64][v8.5A] Add Branch Target Identification instructions
This adds new instructions used by the Branch Target Identification
feature. When this is enabled, these are the only instructions which can
be targeted by indirect branch instructions.
Patch by Pablo Barrio!
Differential revision: https://reviews.llvm.org/D52485
llvm-svn: 343225
Diffstat (limited to 'llvm/test/MC/Disassembler/AArch64')
| -rw-r--r-- | llvm/test/MC/Disassembler/AArch64/armv8.5a-bti.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/AArch64/armv8.5a-bti.txt b/llvm/test/MC/Disassembler/AArch64/armv8.5a-bti.txt new file mode 100644 index 00000000000..e15dcf5e3b7 --- /dev/null +++ b/llvm/test/MC/Disassembler/AArch64/armv8.5a-bti.txt @@ -0,0 +1,18 @@ +# RUN: llvm-mc -triple=aarch64 -mattr=+bti -disassemble < %s | FileCheck %s +# RUN: llvm-mc -triple=aarch64 -mattr=+v8.5a -disassemble < %s | FileCheck %s +# RUN: llvm-mc -triple=aarch64 -mattr=-bti -disassemble < %s 2>&1 | FileCheck %s --check-prefix=NOBTI + +[0x1f 0x24 0x03 0xd5] +[0x5f 0x24 0x03 0xd5] +[0x9f 0x24 0x03 0xd5] +[0xdf 0x24 0x03 0xd5] + +# CHECK: bti +# CHECK: bti c +# CHECK: bti j +# CHECK: bti jc + +# NOBTI: hint #32 +# NOBTI: hint #34 +# NOBTI: hint #36 +# NOBTI: hint #38 |

