brintos

brintos / llvm-project-archived public Read only

0
0
Text · 10.3 KiB · d91940d Raw
221 lines · plain
1// RUN: not llvm-mc -triple=aarch64 -mattr=+sme-mop4,+sme-f16f16 < %s 2>&1 | FileCheck %s2 3// FMOP4A4 5// Single vectors6 7fmop4a za0.d, z0.h, z16.h8// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand9 10fmop4a za2.h, z0.h, z16.h11// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction12 13fmop4a za0.h, z0.s, z16.h14// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h15 16fmop4a za0.h, z15.h, z16.h17// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h18 19fmop4a za0.h, z16.h, z16.h20// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h21 22fmop4a za0.h, z0.h, z16.s23// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h24 25fmop4a za0.h, z12.h, z17.h26// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h27 28fmop4a za0.h, z12.h, z14.h29// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h30 31fmop4a za0.h, 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 36fmop4a za0.d, z0.h, {z16.h-z17.h}37// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand38 39fmop4a za2.h, z0.h, {z16.h-z17.h}40// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction41 42fmop4a za0.h, 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 45fmop4a za0.h, 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 48fmop4a za0.h, 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 51fmop4a za0.h, z0.h, {z16.s-z17.s}52// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction53 54fmop4a za0.h, 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 57fmop4a za0.h, 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 62fmop4a za0.d, {z0.h-z1.h}, z16.h63// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand64 65fmop4a za2.h, {z0.h-z1.h}, z16.h66// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction67 68fmop4a za0.h, {z0.s-z1.h}, z16.h69// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: mismatched register size suffix70 71fmop4a za0.h, {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 74fmop4a za0.h, {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 77fmop4a za0.h, {z0.h-z1.h}, z16.d78// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h79 80fmop4a za0.h, {z0.h-z1.h}, z17.h81// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h82 83fmop4a za0.h, {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 88fmop4a za0.d, {z0.h-z1.h}, {z16.h-z17.h}89// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand90 91fmop4a za2.h, {z0.h-z1.h}, {z16.h-z17.h}92// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction93 94fmop4a za0.h, {z0.s-z1.s}, {z16.h-z17.h}95// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction96 97fmop4a za0.h, {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 100fmop4a za0.h, {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 103fmop4a za0.h, {z0.h-z1.h}, {z16.s-z17.s}104// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction105 106fmop4a za0.h, {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 109fmop4a za0.h, {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// FMOP4S114 115// Single vectors116 117fmop4s za0.d, z0.h, z16.h118// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand119 120fmop4s za2.h, z0.h, z16.h121// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction122 123fmop4s za0.h, z0.s, z16.h124// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h125 126fmop4s za0.h, z15.h, z16.h127// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h128 129fmop4s za0.h, z16.h, z16.h130// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h131 132fmop4s za0.h, z0.h, z16.s133// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h134 135fmop4s za0.h, z12.h, z17.h136// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h137 138fmop4s za0.h, z12.h, z14.h139// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h140 141fmop4s za0.h, 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 146fmop4s za0.d, z0.h, {z16.h-z17.h}147// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand148 149fmop4s za2.h, z0.h, {z16.h-z17.h}150// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction151 152fmop4s za0.h, 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 155fmop4s za0.h, 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 158fmop4s za0.h, 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 161fmop4s za0.h, z0.h, {z16.s-z17.s}162// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction163 164fmop4s za0.h, 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 167fmop4s za0.h, 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 172fmop4s za0.d, {z0.h-z1.h}, z16.h173// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand174 175fmop4s za2.h, {z0.h-z1.h}, z16.h176// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction177 178fmop4s za0.h, {z0.s-z1.h}, z16.h179// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: mismatched register size suffix180 181fmop4s za0.h, {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 184fmop4s za0.h, {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 187fmop4s za0.h, {z0.h-z1.h}, z16.d188// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h189 190fmop4s za0.h, {z0.h-z1.h}, z17.h191// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h192 193fmop4s za0.h, {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 198fmop4s za0.d, {z0.h-z1.h}, {z16.h-z17.h}199// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand200 201fmop4s za2.h, {z0.h-z1.h}, {z16.h-z17.h}202// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction203 204fmop4s za0.h, {z0.s-z1.s}, {z16.h-z17.h}205// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction206 207fmop4s za0.h, {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 210fmop4s za0.h, {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 213fmop4s za0.h, {z0.h-z1.h}, {z16.s-z17.s}214// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction215 216fmop4s za0.h, {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 219fmop4s za0.h, {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