brintos

brintos / llvm-project-archived public Read only

0
0
Text · 10.5 KiB · 22f7888 Raw
221 lines · plain
1// RUN: not llvm-mc -triple=aarch64 -mattr=+sme-mop4 < %s 2>&1 | FileCheck %s2 3// BFMOP4A4 5// Single vectors6 7bfmop4a za0.d, z0.h, z16.h8// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s9 10bfmop4a za4.s, z0.h, z16.h11// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction12 13bfmop4a za0.s, z0.s, z16.h14// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h15 16bfmop4a za0.s, z15.h, z16.h17// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h18 19bfmop4a za0.s, z16.h, z16.h20// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h21 22bfmop4a za0.s, z0.h, z16.s23// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h24 25bfmop4a za0.s, z12.h, z17.h26// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h27 28bfmop4a za0.s, z12.h, z14.h29// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h30 31bfmop4a za0.s, z12.h, z31.h32// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h33 34// Single and multiple vectors35 36bfmop4a za0.d, z0.h, {z16.h-z17.h}37// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s38 39bfmop4a za4.s, z0.h, {z16.h-z17.h}40// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction41 42bfmop4a za0.s, z0.s, {z16.h-z17.h}43// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h44 45bfmop4a za0.s, z1.h, {z16.h-z17.h}46// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h47 48bfmop4a za0.s, z16.h, {z16.h-z17.h}49// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h50 51bfmop4a za0.s, z0.h, {z16.s-z17.s}52// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction53 54bfmop4a za0.s, z0.h, {z17.h-z18.h}55// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types56 57bfmop4a za0.s, z0.h, {z12.h-z13.h}58// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types59 60// Multiple and single vectors61 62bfmop4a za0.d, {z0.h-z1.h}, z16.h63// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s64 65bfmop4a za4.s, {z0.h-z1.h}, z16.h66// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction67 68bfmop4a za0.s, {z0.s-z1.h}, z16.h69// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: mismatched register size suffix70 71bfmop4a za0.s, {z1.h-z2.h}, z16.h72// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types73 74bfmop4a za0.s, {z16.h-z17.h}, z16.h75// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types76 77bfmop4a za0.s, {z0.h-z1.h}, z16.d78// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h79 80bfmop4a za0.s, {z0.h-z1.h}, z17.h81// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h82 83bfmop4a za0.s, {z0.h-z1.h}, z12.h84// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h85 86// Multiple vectors87 88bfmop4a za0.d, {z0.h-z1.h}, {z16.h-z17.h}89// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s90 91bfmop4a za4.s, {z0.h-z1.h}, {z16.h-z17.h}92// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction93 94bfmop4a za0.s, {z0.s-z1.s}, {z16.h-z17.h}95// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction96 97bfmop4a za0.s, {z1.h-z2.h}, {z16.h-z17.h}98// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types99 100bfmop4a za0.s, {z18.h-z19.h}, {z16.h-z17.h}101// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types102 103bfmop4a za0.s, {z0.h-z1.h}, {z16.s-z17.s}104// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction105 106bfmop4a za0.s, {z0.h-z1.h}, {z19.h-z20.h}107// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types108 109bfmop4a za0.s, {z0.h-z1.h}, {z10.h-z11.h}110// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types111 112 113// BFMOP4S114 115// Single vectors116 117bfmop4s za0.d, z0.h, z16.h118// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s119 120bfmop4s za4.s, z0.h, z16.h121// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction122 123bfmop4s za0.s, z0.s, z16.h124// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h125 126bfmop4s za0.s, z15.h, z16.h127// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h128 129bfmop4s za0.s, z16.h, z16.h130// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h131 132bfmop4s za0.s, z0.h, z16.s133// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h134 135bfmop4s za0.s, z12.h, z17.h136// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h137 138bfmop4s za0.s, z12.h, z14.h139// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h140 141bfmop4s za0.s, z12.h, z31.h142// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h143 144// Single and multiple vectors145 146bfmop4s za0.d, z0.h, {z16.h-z17.h}147// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s148 149bfmop4s za4.s, z0.h, {z16.h-z17.h}150// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction151 152bfmop4s za0.s, z0.s, {z16.h-z17.h}153// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h154 155bfmop4s za0.s, z1.h, {z16.h-z17.h}156// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h157 158bfmop4s za0.s, z16.h, {z16.h-z17.h}159// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h160 161bfmop4s za0.s, z0.h, {z16.s-z17.s}162// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction163 164bfmop4s za0.s, z0.h, {z17.h-z18.h}165// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types166 167bfmop4s za0.s, z0.h, {z12.h-z13.h}168// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types169 170// Multiple and single vectors171 172bfmop4s za0.d, {z0.h-z1.h}, z16.h173// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s174 175bfmop4s za4.s, {z0.h-z1.h}, z16.h176// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction177 178bfmop4s za0.s, {z0.s-z1.h}, z16.h179// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: mismatched register size suffix180 181bfmop4s za0.s, {z1.h-z2.h}, z16.h182// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types183 184bfmop4s za0.s, {z16.h-z17.h}, z16.h185// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types186 187bfmop4s za0.s, {z0.h-z1.h}, z16.d188// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h189 190bfmop4s za0.s, {z0.h-z1.h}, z17.h191// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h192 193bfmop4s za0.s, {z0.h-z1.h}, z12.h194// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h195 196// Multiple vectors197 198bfmop4s za0.d, {z0.h-z1.h}, {z16.h-z17.h}199// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s200 201bfmop4s za4.s, {z0.h-z1.h}, {z16.h-z17.h}202// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction203 204bfmop4s za0.s, {z0.s-z1.s}, {z16.h-z17.h}205// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction206 207bfmop4s za0.s, {z1.h-z2.h}, {z16.h-z17.h}208// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types209 210bfmop4s za0.s, {z18.h-z19.h}, {z16.h-z17.h}211// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types212 213bfmop4s za0.s, {z0.h-z1.h}, {z16.s-z17.s}214// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction215 216bfmop4s za0.s, {z0.h-z1.h}, {z19.h-z20.h}217// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types218 219bfmop4s za0.s, {z0.h-z1.h}, {z10.h-z11.h}220// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types221