1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/MC/AArch64/armv8.5a-predctrl-error.s
Oliver Stannard e0b46dae60 [AArch64][v8.5A] Add prediction invalidation instructions to AArch64
This adds new system instructions which act as barriers to speculative
execution based on earlier execution within a particular execution
context.

Patch by Pablo Barrio!

Differential revision: https://reviews.llvm.org/D52479

llvm-svn: 343214
2018-09-27 13:47:40 +00:00

21 lines
579 B
ArmAsm

// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+predctrl < %s 2>&1| FileCheck %s
cfp rctx
dvp rctx
cpp rctx
// CHECK: specified cfp op requires a register
// CHECK: specified dvp op requires a register
// CHECK: specified cpp op requires a register
cfp x0, x1
dvp x1, x2
cpp x2, x3
// CHECK: invalid operand for prediction restriction instruction
// CHECK-NEXT: cfp
// CHECK: invalid operand for prediction restriction instruction
// CHECK-NEXT: dvp
// CHECK: invalid operand for prediction restriction instruction
// CHECK-NEXT: cpp