1 # RUN: llvm-mc -triple aarch64 -disassemble -mattr=+cpa < %s | FileCheck %s
2 # RUN: not llvm-mc -triple aarch64 -disassemble < %s 2>&1 | FileCheck --check-prefix=NO-CPA %s
5 # CHECK: addpt x0, x1, x2
6 # NO-CPA: warning: invalid instruction encoding
9 # CHECK: addpt sp, sp, x2
10 # NO-CPA: warning: invalid instruction encoding
13 # CHECK: addpt x0, x1, x2, lsl #7
14 # NO-CPA: warning: invalid instruction encoding
17 # CHECK: addpt sp, sp, x2, lsl #7
18 # NO-CPA: warning: invalid instruction encoding
21 # CHECK: subpt x0, x1, x2
22 # NO-CPA: warning: invalid instruction encoding
25 # CHECK: subpt sp, sp, x2
26 # NO-CPA: warning: invalid instruction encoding
29 # CHECK: subpt x0, x1, x2, lsl #7
30 # NO-CPA: warning: invalid instruction encoding
33 # CHECK: subpt sp, sp, x2, lsl #7
34 # NO-CPA: warning: invalid instruction encoding
37 # CHECK: maddpt x0, x1, x2, x3
38 # NO-CPA: warning: invalid instruction encoding
41 # CHECK: msubpt x0, x1, x2, x3
42 # NO-CPA: warning: invalid instruction encoding