1// RUN:     llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+predres < %s      | FileCheck %s
2// RUN:     llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.5a    < %s      | FileCheck %s
3// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=-predres < %s 2>&1 | FileCheck %s --check-prefix=NOPREDCTRL
4
5cfp rctx, x0
6dvp rctx, x1
7cpp rctx, x2
8
9// CHECK: cfp rctx, x0      // encoding: [0x80,0x73,0x0b,0xd5]
10// CHECK: dvp rctx, x1      // encoding: [0xa1,0x73,0x0b,0xd5]
11// CHECK: cpp rctx, x2      // encoding: [0xe2,0x73,0x0b,0xd5]
12
13// NOPREDCTRL: CFPRCTX requires predres
14// NOPREDCTRL-NEXT: cfp
15// NOPREDCTRL: DVPRCTX requires predres
16// NOPREDCTRL-NEXT: dvp
17// NOPREDCTRL: CPPRCTX requires predres
18// NOPREDCTRL-NEXT: cpp
19