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.5
a < %s | FileCheck
%s
3 // RUN
: llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=-bti
< %s | FileCheck
%s
--check-prefix
=NOBTI
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]
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]