| 1 |
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \ |
| 2 |
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 3 |
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \ |
| 4 |
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 5 |
// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ |
| 6 |
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| 7 |
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ |
| 8 |
// RUN: | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST |
| 9 |
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ |
| 10 |
// RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| 11 |
|
| 12 |
fcmla z0.h, p0/m, z0.h, z0.h, #0 |
| 13 |
// CHECK-INST: fcmla z0.h, p0/m, z0.h, z0.h, #0 |
| 14 |
// CHECK-ENCODING: [0x00,0x00,0x40,0x64] |
| 15 |
// CHECK-ERROR: instruction requires: sve or sme |
| 16 |
// CHECK-UNKNOWN: 64400000 <unknown> |
| 17 |
|
| 18 |
fcmla z0.s, p0/m, z0.s, z0.s, #0 |
| 19 |
// CHECK-INST: fcmla z0.s, p0/m, z0.s, z0.s, #0 |
| 20 |
// CHECK-ENCODING: [0x00,0x00,0x80,0x64] |
| 21 |
// CHECK-ERROR: instruction requires: sve or sme |
| 22 |
// CHECK-UNKNOWN: 64800000 <unknown> |
| 23 |
|
| 24 |
fcmla z0.d, p0/m, z0.d, z0.d, #0 |
| 25 |
// CHECK-INST: fcmla z0.d, p0/m, z0.d, z0.d, #0 |
| 26 |
// CHECK-ENCODING: [0x00,0x00,0xc0,0x64] |
| 27 |
// CHECK-ERROR: instruction requires: sve or sme |
| 28 |
// CHECK-UNKNOWN: 64c00000 <unknown> |
| 29 |
|
| 30 |
fcmla z0.h, p0/m, z1.h, z2.h, #90 |
| 31 |
// CHECK-INST: fcmla z0.h, p0/m, z1.h, z2.h, #90 |
| 32 |
// CHECK-ENCODING: [0x20,0x20,0x42,0x64] |
| 33 |
// CHECK-ERROR: instruction requires: sve or sme |
| 34 |
// CHECK-UNKNOWN: 64422020 <unknown> |
| 35 |
|
| 36 |
fcmla z0.s, p0/m, z1.s, z2.s, #90 |
| 37 |
// CHECK-INST: fcmla z0.s, p0/m, z1.s, z2.s, #90 |
| 38 |
// CHECK-ENCODING: [0x20,0x20,0x82,0x64] |
| 39 |
// CHECK-ERROR: instruction requires: sve or sme |
| 40 |
// CHECK-UNKNOWN: 64822020 <unknown> |
| 41 |
|
| 42 |
fcmla z0.d, p0/m, z1.d, z2.d, #90 |
| 43 |
// CHECK-INST: fcmla z0.d, p0/m, z1.d, z2.d, #90 |
| 44 |
// CHECK-ENCODING: [0x20,0x20,0xc2,0x64] |
| 45 |
// CHECK-ERROR: instruction requires: sve or sme |
| 46 |
// CHECK-UNKNOWN: 64c22020 <unknown> |
| 47 |
|
| 48 |
fcmla z29.h, p7/m, z30.h, z31.h, #180 |
| 49 |
// CHECK-INST: fcmla z29.h, p7/m, z30.h, z31.h, #180 |
| 50 |
// CHECK-ENCODING: [0xdd,0x5f,0x5f,0x64] |
| 51 |
// CHECK-ERROR: instruction requires: sve or sme |
| 52 |
// CHECK-UNKNOWN: 645f5fdd <unknown> |
| 53 |
|
| 54 |
fcmla z29.s, p7/m, z30.s, z31.s, #180 |
| 55 |
// CHECK-INST: fcmla z29.s, p7/m, z30.s, z31.s, #180 |
| 56 |
// CHECK-ENCODING: [0xdd,0x5f,0x9f,0x64] |
| 57 |
// CHECK-ERROR: instruction requires: sve or sme |
| 58 |
// CHECK-UNKNOWN: 649f5fdd <unknown> |
| 59 |
|
| 60 |
fcmla z29.d, p7/m, z30.d, z31.d, #180 |
| 61 |
// CHECK-INST: fcmla z29.d, p7/m, z30.d, z31.d, #180 |
| 62 |
// CHECK-ENCODING: [0xdd,0x5f,0xdf,0x64] |
| 63 |
// CHECK-ERROR: instruction requires: sve or sme |
| 64 |
// CHECK-UNKNOWN: 64df5fdd <unknown> |
| 65 |
|
| 66 |
fcmla z31.h, p7/m, z31.h, z31.h, #270 |
| 67 |
// CHECK-INST: fcmla z31.h, p7/m, z31.h, z31.h, #270 |
| 68 |
// CHECK-ENCODING: [0xff,0x7f,0x5f,0x64] |
| 69 |
// CHECK-ERROR: instruction requires: sve or sme |
| 70 |
// CHECK-UNKNOWN: 645f7fff <unknown> |
| 71 |
|
| 72 |
fcmla z31.s, p7/m, z31.s, z31.s, #270 |
| 73 |
// CHECK-INST: fcmla z31.s, p7/m, z31.s, z31.s, #270 |
| 74 |
// CHECK-ENCODING: [0xff,0x7f,0x9f,0x64] |
| 75 |
// CHECK-ERROR: instruction requires: sve or sme |
| 76 |
// CHECK-UNKNOWN: 649f7fff <unknown> |
| 77 |
|
| 78 |
fcmla z31.d, p7/m, z31.d, z31.d, #270 |
| 79 |
// CHECK-INST: fcmla z31.d, p7/m, z31.d, z31.d, #270 |
| 80 |
// CHECK-ENCODING: [0xff,0x7f,0xdf,0x64] |
| 81 |
// CHECK-ERROR: instruction requires: sve or sme |
| 82 |
// CHECK-UNKNOWN: 64df7fff <unknown> |
| 83 |
|
| 84 |
fcmla z0.h, z0.h, z0.h[0], #0 |
| 85 |
// CHECK-INST: fcmla z0.h, z0.h, z0.h[0], #0 |
| 86 |
// CHECK-ENCODING: [0x00,0x10,0xa0,0x64] |
| 87 |
// CHECK-ERROR: instruction requires: sve or sme |
| 88 |
// CHECK-UNKNOWN: 64a01000 <unknown> |
| 89 |
|
| 90 |
fcmla z23.s, z13.s, z8.s[0], #270 |
| 91 |
// CHECK-INST: fcmla z23.s, z13.s, z8.s[0], #270 |
| 92 |
// CHECK-ENCODING: [0xb7,0x1d,0xe8,0x64] |
| 93 |
// CHECK-ERROR: instruction requires: sve or sme |
| 94 |
// CHECK-UNKNOWN: 64e81db7 <unknown> |
| 95 |
|
| 96 |
fcmla z31.h, z31.h, z7.h[3], #270 |
| 97 |
// CHECK-INST: fcmla z31.h, z31.h, z7.h[3], #270 |
| 98 |
// CHECK-ENCODING: [0xff,0x1f,0xbf,0x64] |
| 99 |
// CHECK-ERROR: instruction requires: sve or sme |
| 100 |
// CHECK-UNKNOWN: 64bf1fff <unknown> |
| 101 |
|
| 102 |
fcmla z21.s, z10.s, z5.s[1], #90 |
| 103 |
// CHECK-INST: fcmla z21.s, z10.s, z5.s[1], #90 |
| 104 |
// CHECK-ENCODING: [0x55,0x15,0xf5,0x64] |
| 105 |
// CHECK-ERROR: instruction requires: sve or sme |
| 106 |
// CHECK-UNKNOWN: 64f51555 <unknown> |
| 107 |
|
| 108 |
|
| 109 |
// --------------------------------------------------------------------------// |
| 110 |
// Test compatibility with MOVPRFX instruction. |
| 111 |
|
| 112 |
movprfx z4.d, p7/z, z6.d |
| 113 |
// CHECK-INST: movprfx z4.d, p7/z, z6.d |
| 114 |
// CHECK-ENCODING: [0xc4,0x3c,0xd0,0x04] |
| 115 |
// CHECK-ERROR: instruction requires: sve or sme |
| 116 |
// CHECK-UNKNOWN: 04d03cc4 <unknown> |
| 117 |
|
| 118 |
fcmla z4.d, p7/m, z31.d, z31.d, #270 |
| 119 |
// CHECK-INST: fcmla z4.d, p7/m, z31.d, z31.d, #270 |
| 120 |
// CHECK-ENCODING: [0xe4,0x7f,0xdf,0x64] |
| 121 |
// CHECK-ERROR: instruction requires: sve or sme |
| 122 |
// CHECK-UNKNOWN: 64df7fe4 <unknown> |
| 123 |
|
| 124 |
movprfx z4, z6 |
| 125 |
// CHECK-INST: movprfx z4, z6 |
| 126 |
// CHECK-ENCODING: [0xc4,0xbc,0x20,0x04] |
| 127 |
// CHECK-ERROR: instruction requires: sve or sme |
| 128 |
// CHECK-UNKNOWN: 0420bcc4 <unknown> |
| 129 |
|
| 130 |
fcmla z4.d, p7/m, z31.d, z31.d, #270 |
| 131 |
// CHECK-INST: fcmla z4.d, p7/m, z31.d, z31.d, #270 |
| 132 |
// CHECK-ENCODING: [0xe4,0x7f,0xdf,0x64] |
| 133 |
// CHECK-ERROR: instruction requires: sve or sme |
| 134 |
// CHECK-UNKNOWN: 64df7fe4 <unknown> |
| 135 |
|
| 136 |
movprfx z21, z28 |
| 137 |
// CHECK-INST: movprfx z21, z28 |
| 138 |
// CHECK-ENCODING: [0x95,0xbf,0x20,0x04] |
| 139 |
// CHECK-ERROR: instruction requires: sve or sme |
| 140 |
// CHECK-UNKNOWN: 0420bf95 <unknown> |
| 141 |
|
| 142 |
fcmla z21.s, z10.s, z5.s[1], #90 |
| 143 |
// CHECK-INST: fcmla z21.s, z10.s, z5.s[1], #90 |
| 144 |
// CHECK-ENCODING: [0x55,0x15,0xf5,0x64] |
| 145 |
// CHECK-ERROR: instruction requires: sve or sme |
| 146 |
// CHECK-UNKNOWN: 64f51555 <unknown> |