summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AArch64/armv8.5a-ssbs-error.s
blob: 59819705e46cee2b23450695d7fd884c8264b5ac (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=+ssbs  < %s 2>&1 | FileCheck %s
// RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=+v8.5a < %s 2>&1 | FileCheck %s
// RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=-ssbs  < %s 2>&1 | FileCheck %s --check-prefix=NOSPECID

msr SSBS, #2

// CHECK:         error: immediate must be an integer in range [0, 1].
// CHECK-NEXT:    msr SSBS, #2
// NOSPECID:      error: expected writable system register or pstate
// NOSPECID-NEXT: msr {{ssbs|SSBS}}, #2
OpenPOWER on IntegriCloud