Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / armv8.5a-bti.s
blobe0585f7613fcc8245c7e08c08c2746d49ea35e7d
1 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+bti < %s | FileCheck %s
2 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.5a < %s | FileCheck %s
3 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=-bti < %s | FileCheck %s --check-prefix=NOBTI
5 bti
6 bti c
7 bti j
8 bti jc
10 // CHECK: bti // encoding: [0x1f,0x24,0x03,0xd5]
11 // CHECK: bti c // encoding: [0x5f,0x24,0x03,0xd5]
12 // CHECK: bti j // encoding: [0x9f,0x24,0x03,0xd5]
13 // CHECK: bti jc // encoding: [0xdf,0x24,0x03,0xd5]
15 // NOBTI: hint #32 // encoding: [0x1f,0x24,0x03,0xd5]
16 // NOBTI: hint #34 // encoding: [0x5f,0x24,0x03,0xd5]
17 // NOBTI: hint #36 // encoding: [0x9f,0x24,0x03,0xd5]
18 // NOBTI: hint #38 // encoding: [0xdf,0x24,0x03,0xd5]
20 hint #32
21 hint #34
22 hint #36
23 hint #38
25 // CHECK: bti // encoding: [0x1f,0x24,0x03,0xd5]
26 // CHECK: bti c // encoding: [0x5f,0x24,0x03,0xd5]
27 // CHECK: bti j // encoding: [0x9f,0x24,0x03,0xd5]
28 // CHECK: bti jc // encoding: [0xdf,0x24,0x03,0xd5]
30 // NOBTI: hint #32 // encoding: [0x1f,0x24,0x03,0xd5]
31 // NOBTI: hint #34 // encoding: [0x5f,0x24,0x03,0xd5]
32 // NOBTI: hint #36 // encoding: [0x9f,0x24,0x03,0xd5]
33 // NOBTI: hint #38 // encoding: [0xdf,0x24,0x03,0xd5]