1// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+specres2 < %s | FileCheck %s 2// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.9a < %s | FileCheck %s 3// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v9.4a < %s | FileCheck %s 4// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=-specres2 < %s 2>&1 | FileCheck %s --check-prefix=NOSPECRES2 5 6cosp rctx, x0 7sys #3, c7, c3, #6, x0 8 9// CHECK: cosp rctx, x0 // encoding: [0xc0,0x73,0x0b,0xd5] 10// CHECK: cosp rctx, x0 // encoding: [0xc0,0x73,0x0b,0xd5] 11 12// NOSPECRES2: COSP requires: predres2 13// NOSPECRES2-NEXT: cosp 14