| # RUN: llvm-mc -triple aarch64 -disassemble -mattr=+cpa < %s | FileCheck %s |
| # RUN: not llvm-mc -triple aarch64 -disassemble < %s 2>&1 | FileCheck --check-prefix=NO-CPA %s |
| |
| [0x20,0x20,0x02,0x9a] |
| # CHECK: addpt x0, x1, x2 |
| # NO-CPA: warning: invalid instruction encoding |
| |
| [0xff,0x23,0x02,0x9a] |
| # CHECK: addpt sp, sp, x2 |
| # NO-CPA: warning: invalid instruction encoding |
| |
| [0x20,0x3c,0x02,0x9a] |
| # CHECK: addpt x0, x1, x2, lsl #7 |
| # NO-CPA: warning: invalid instruction encoding |
| |
| [0xff,0x3f,0x02,0x9a] |
| # CHECK: addpt sp, sp, x2, lsl #7 |
| # NO-CPA: warning: invalid instruction encoding |
| |
| [0x20,0x20,0x02,0xda] |
| # CHECK: subpt x0, x1, x2 |
| # NO-CPA: warning: invalid instruction encoding |
| |
| [0xff,0x23,0x02,0xda] |
| # CHECK: subpt sp, sp, x2 |
| # NO-CPA: warning: invalid instruction encoding |
| |
| [0x20,0x3c,0x02,0xda] |
| # CHECK: subpt x0, x1, x2, lsl #7 |
| # NO-CPA: warning: invalid instruction encoding |
| |
| [0xff,0x3f,0x02,0xda] |
| # CHECK: subpt sp, sp, x2, lsl #7 |
| # NO-CPA: warning: invalid instruction encoding |
| |
| [0x20,0x0c,0x62,0x9b] |
| # CHECK: maddpt x0, x1, x2, x3 |
| # NO-CPA: warning: invalid instruction encoding |
| |
| [0x20,0x8c,0x62,0x9b] |
| # CHECK: msubpt x0, x1, x2, x3 |
| # NO-CPA: warning: invalid instruction encoding |