brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 889b6b9 Raw
27 lines · plain
1// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+btie < %s | FileCheck %s2// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+bti  < %s | FileCheck %s --check-prefix=NOBTIE3// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding              < %s | FileCheck %s --check-prefix=HINT4 5// "bti r" is the preferred encoding when +btie or +poe2 is specified.6// Otherwise default back to plain "bti". They are aliases of each other.7// Check that disassembly when `btie` is not specified causes plain8// "bti" to be emitted.9 10bti11bti r12 13// CHECK: bti r     // encoding: [0x1f,0x24,0x03,0xd5]14// CHECK: bti r     // encoding: [0x1f,0x24,0x03,0xd5]15 16// NOBTIE: bti      // encoding: [0x1f,0x24,0x03,0xd5]17// NOBTIE: bti      // encoding: [0x1f,0x24,0x03,0xd5]18 19// HINT: hint #32   // encoding: [0x1f,0x24,0x03,0xd5]20// HINT: hint #32   // encoding: [0x1f,0x24,0x03,0xd5]21 22hint #3223 24// CHECK: bti r     // encoding: [0x1f,0x24,0x03,0xd5]25// NOBTIE: bti      // encoding: [0x1f,0x24,0x03,0xd5]26// HINT: hint #32   // encoding: [0x1f,0x24,0x03,0xd5]27