brintos

brintos / llvm-project-archived public Read only

0
0
Text · 7.9 KiB · c2b2ab0 Raw
160 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+faminmax < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \4// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2,+faminmax < %s \6// RUN:        | llvm-objdump -d --mattr=+sme2,+faminmax - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2,+faminmax < %s \8// RUN:        | llvm-objdump -d --mattr=-faminmax - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// Disassemble encoding and check the re-encoding (-show-encoding) matches.10// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+faminmax < %s \11// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \12// RUN:        | llvm-mc -triple=aarch64 -mattr=+sme2,+faminmax -disassemble -show-encoding \13// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15// FAMAX16famax   {z0.h-z1.h}, {z0.h-z1.h}, {z0.h-z1.h}  // 11000001-01100000-10110001-0100000017// CHECK-INST: famax   { z0.h, z1.h }, { z0.h, z1.h }, { z0.h, z1.h }18// CHECK-ENCODING: [0x40,0xb1,0x60,0xc1]19// CHECK-ERROR: instruction requires: faminmax sme220// CHECK-UNKNOWN: c160b140 <unknown>21 22famax   {z30.h-z31.h}, {z30.h-z31.h}, {z30.h-z31.h}  // 11000001-01111110-10110001-0101111023// CHECK-INST: famax   { z30.h, z31.h }, { z30.h, z31.h }, { z30.h, z31.h }24// CHECK-ENCODING: [0x5e,0xb1,0x7e,0xc1]25// CHECK-ERROR: instruction requires: faminmax sme226// CHECK-UNKNOWN: c17eb15e <unknown>27 28famax   {z0.s-z1.s}, {z0.s-z1.s}, {z0.s-z1.s}  // 11000001-10100000-10110001-0100000029// CHECK-INST: famax   { z0.s, z1.s }, { z0.s, z1.s }, { z0.s, z1.s }30// CHECK-ENCODING: [0x40,0xb1,0xa0,0xc1]31// CHECK-ERROR: instruction requires: faminmax sme232// CHECK-UNKNOWN: c1a0b140 <unknown>33 34famax   {z30.s-z31.s}, {z30.s-z31.s}, {z30.s-z31.s}  // 11000001-10111110-10110001-0101111035// CHECK-INST: famax   { z30.s, z31.s }, { z30.s, z31.s }, { z30.s, z31.s }36// CHECK-ENCODING: [0x5e,0xb1,0xbe,0xc1]37// CHECK-ERROR: instruction requires: faminmax sme238// CHECK-UNKNOWN: c1beb15e <unknown>39 40famax   {z0.d-z1.d}, {z0.d-z1.d}, {z0.d-z1.d}  // 11000001-11100000-10110001-0100000041// CHECK-INST: famax   { z0.d, z1.d }, { z0.d, z1.d }, { z0.d, z1.d }42// CHECK-ENCODING: [0x40,0xb1,0xe0,0xc1]43// CHECK-ERROR: instruction requires: faminmax sme244// CHECK-UNKNOWN: c1e0b140 <unknown>45 46famax   {z30.d-z31.d}, {z30.d-z31.d}, {z30.d-z31.d}  // 11000001-11111110-10110001-0101111047// CHECK-INST: famax   { z30.d, z31.d }, { z30.d, z31.d }, { z30.d, z31.d }48// CHECK-ENCODING: [0x5e,0xb1,0xfe,0xc1]49// CHECK-ERROR: instruction requires: faminmax sme250// CHECK-UNKNOWN: c1feb15e <unknown>51 52famax   {z0.h-z3.h}, {z0.h-z3.h}, {z0.h-z3.h}  // 11000001-01100000-10111001-0100000053// CHECK-INST: famax   { z0.h - z3.h }, { z0.h - z3.h }, { z0.h - z3.h }54// CHECK-ENCODING: [0x40,0xb9,0x60,0xc1]55// CHECK-ERROR: instruction requires: faminmax sme256// CHECK-UNKNOWN: c160b940 <unknown>57 58famax   {z28.h-z31.h}, {z28.h-z31.h}, {z28.h-z31.h}  // 11000001-01111100-10111001-0101110059// CHECK-INST: famax   { z28.h - z31.h }, { z28.h - z31.h }, { z28.h - z31.h }60// CHECK-ENCODING: [0x5c,0xb9,0x7c,0xc1]61// CHECK-ERROR: instruction requires: faminmax sme262// CHECK-UNKNOWN: c17cb95c <unknown>63 64famax   {z0.s-z3.s}, {z0.s-z3.s}, {z0.s-z3.s}  // 11000001-10100000-10111001-0100000065// CHECK-INST: famax   { z0.s - z3.s }, { z0.s - z3.s }, { z0.s - z3.s }66// CHECK-ENCODING: [0x40,0xb9,0xa0,0xc1]67// CHECK-ERROR: instruction requires: faminmax sme268// CHECK-UNKNOWN: c1a0b940 <unknown>69 70famax   {z28.s-z31.s}, {z28.s-z31.s}, {z28.s-z31.s}  // 11000001-10111100-10111001-0101110071// CHECK-INST: famax   { z28.s - z31.s }, { z28.s - z31.s }, { z28.s - z31.s }72// CHECK-ENCODING: [0x5c,0xb9,0xbc,0xc1]73// CHECK-ERROR: instruction requires: faminmax sme274// CHECK-UNKNOWN: c1bcb95c <unknown>75 76famax   {z0.h-z3.h}, {z0.h-z3.h}, {z0.h-z3.h}  // 11000001-01100000-10111001-0100000077// CHECK-INST: famax   { z0.h - z3.h }, { z0.h - z3.h }, { z0.h - z3.h }78// CHECK-ENCODING: [0x40,0xb9,0x60,0xc1]79// CHECK-ERROR: instruction requires: faminmax sme280// CHECK-UNKNOWN: c160b940 <unknown>81 82famax   {z28.h-z31.h}, {z28.h-z31.h}, {z28.h-z31.h}  // 11000001-01111100-10111001-0101110083// CHECK-INST: famax   { z28.h - z31.h }, { z28.h - z31.h }, { z28.h - z31.h }84// CHECK-ENCODING: [0x5c,0xb9,0x7c,0xc1]85// CHECK-ERROR: instruction requires: faminmax sme286// CHECK-UNKNOWN: c17cb95c <unknown>87 88// FAMIN89famin   {z0.h-z1.h}, {z0.h-z1.h}, {z0.h-z1.h}  // 11000001-01100000-10110001-0100000190// CHECK-INST: famin   { z0.h, z1.h }, { z0.h, z1.h }, { z0.h, z1.h }91// CHECK-ENCODING: [0x41,0xb1,0x60,0xc1]92// CHECK-ERROR: instruction requires: faminmax sme293// CHECK-UNKNOWN: c160b141 <unknown>94 95famin   {z30.h-z31.h}, {z30.h-z31.h}, {z30.h-z31.h}  // 11000001-01111110-10110001-0101111196// CHECK-INST: famin   { z30.h, z31.h }, { z30.h, z31.h }, { z30.h, z31.h }97// CHECK-ENCODING: [0x5f,0xb1,0x7e,0xc1]98// CHECK-ERROR: instruction requires: faminmax sme299// CHECK-UNKNOWN: c17eb15f <unknown>100 101famin   {z0.s-z1.s}, {z0.s-z1.s}, {z0.s-z1.s}  // 11000001-10100000-10110001-01000001102// CHECK-INST: famin   { z0.s, z1.s }, { z0.s, z1.s }, { z0.s, z1.s }103// CHECK-ENCODING: [0x41,0xb1,0xa0,0xc1]104// CHECK-ERROR: instruction requires: faminmax sme2105// CHECK-UNKNOWN: c1a0b141 <unknown>106 107famin   {z30.s-z31.s}, {z30.s-z31.s}, {z30.s-z31.s}  // 11000001-10111110-10110001-01011111108// CHECK-INST: famin   { z30.s, z31.s }, { z30.s, z31.s }, { z30.s, z31.s }109// CHECK-ENCODING: [0x5f,0xb1,0xbe,0xc1]110// CHECK-ERROR: instruction requires: faminmax sme2111// CHECK-UNKNOWN: c1beb15f <unknown>112 113famin   {z0.d-z1.d}, {z0.d-z1.d}, {z0.d-z1.d}  // 11000001-11100000-10110001-01000001114// CHECK-INST: famin   { z0.d, z1.d }, { z0.d, z1.d }, { z0.d, z1.d }115// CHECK-ENCODING: [0x41,0xb1,0xe0,0xc1]116// CHECK-ERROR: instruction requires: faminmax sme2117// CHECK-UNKNOWN: c1e0b141 <unknown>118 119famin   {z30.d-z31.d}, {z30.d-z31.d}, {z30.d-z31.d}  // 11000001-11111110-10110001-01011111120// CHECK-INST: famin   { z30.d, z31.d }, { z30.d, z31.d }, { z30.d, z31.d }121// CHECK-ENCODING: [0x5f,0xb1,0xfe,0xc1]122// CHECK-ERROR: instruction requires: faminmax sme2123// CHECK-UNKNOWN: c1feb15f <unknown>124 125famin   {z0.h-z3.h}, {z0.h-z3.h}, {z0.h-z3.h}  // 11000001-01100000-10111001-01000001126// CHECK-INST: famin   { z0.h - z3.h }, { z0.h - z3.h }, { z0.h - z3.h }127// CHECK-ENCODING: [0x41,0xb9,0x60,0xc1]128// CHECK-ERROR: instruction requires: faminmax sme2129// CHECK-UNKNOWN: c160b941 <unknown>130 131famin   {z28.h-z31.h}, {z28.h-z31.h}, {z28.h-z31.h}  // 11000001-01111100-10111001-01011101132// CHECK-INST: famin   { z28.h - z31.h }, { z28.h - z31.h }, { z28.h - z31.h }133// CHECK-ENCODING: [0x5d,0xb9,0x7c,0xc1]134// CHECK-ERROR: instruction requires: faminmax sme2135// CHECK-UNKNOWN: c17cb95d <unknown>136 137famin   {z0.s-z3.s}, {z0.s-z3.s}, {z0.s-z3.s}  // 11000001-10100000-10111001-01000001138// CHECK-INST: famin   { z0.s - z3.s }, { z0.s - z3.s }, { z0.s - z3.s }139// CHECK-ENCODING: [0x41,0xb9,0xa0,0xc1]140// CHECK-ERROR: instruction requires: faminmax sme2141// CHECK-UNKNOWN: c1a0b941 <unknown>142 143famin   {z28.s-z31.s}, {z28.s-z31.s}, {z28.s-z31.s}  // 11000001-10111100-10111001-01011101144// CHECK-INST: famin   { z28.s - z31.s }, { z28.s - z31.s }, { z28.s - z31.s }145// CHECK-ENCODING: [0x5d,0xb9,0xbc,0xc1]146// CHECK-ERROR: instruction requires: faminmax sme2147// CHECK-UNKNOWN: c1bcb95d <unknown>148 149famin   {z0.d-z3.d}, {z0.d-z3.d}, {z0.d-z3.d}  // 11000001-11100000-10111001-01000001150// CHECK-INST: famin   { z0.d - z3.d }, { z0.d - z3.d }, { z0.d - z3.d }151// CHECK-ENCODING: [0x41,0xb9,0xe0,0xc1]152// CHECK-ERROR: instruction requires: faminmax sme2153// CHECK-UNKNOWN: c1e0b941 <unknown>154 155famin   {z28.d-z31.d}, {z28.d-z31.d}, {z28.d-z31.d}  // 11000001-11111100-10111001-01011101156// CHECK-INST: famin   { z28.d - z31.d }, { z28.d - z31.d }, { z28.d - z31.d }157// CHECK-ENCODING: [0x5d,0xb9,0xfc,0xc1]158// CHECK-ERROR: instruction requires: faminmax sme2159// CHECK-UNKNOWN: c1fcb95d <unknown>160