1// RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=+ssbs  < %s 2>&1 | FileCheck %s
2// RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=+v8.5a < %s 2>&1 | FileCheck %s
3// RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=-ssbs  < %s 2>&1 | FileCheck %s --check-prefix=NOSPECID
4
5msr SSBS, #2
6
7// CHECK:         error: immediate must be an integer in range [0, 1].
8// CHECK-NEXT:    msr SSBS, #2
9// NOSPECID:      error: expected writable system register or pstate
10// NOSPECID-NEXT: msr {{ssbs|SSBS}}, #2
11