brintos

brintos / llvm-project-archived public Read only

0
0
Text · 6.0 KiB · 3f931b0 Raw
145 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+faminmax < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3 4// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+faminmax < %s \5// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST6 7// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \8// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR9 10// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2,+faminmax < %s \11// RUN:        | llvm-objdump -d --mattr=+sve2,+faminmax - | FileCheck %s --check-prefix=CHECK-INST12 13// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2,+faminmax < %s \14// RUN:        | llvm-objdump -d --mattr=-faminmax - | FileCheck %s --check-prefix=CHECK-UNKNOWN15 16// Disassemble encoding and check the re-encoding (-show-encoding) matches.17// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+faminmax < %s \18// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \19// RUN:        | llvm-mc -triple=aarch64 -mattr=+sve2,+faminmax -disassemble -show-encoding \20// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST21 22// FAMIN23 24famin   z0.h, p0/m, z0.h, z1.h  // 01100101-01001111-10000000-0010000025// CHECK-INST: famin   z0.h, p0/m, z0.h, z1.h26// CHECK-ENCODING: [0x20,0x80,0x4f,0x65]27// CHECK-ERROR: instruction requires: faminmax sve2 or sme228// CHECK-UNKNOWN: 654f8020 <unknown>29 30movprfx z23, z3131famin   z23.h, p3/m, z23.h, z13.h  // 01100101-01001111-10001101-1011011132// CHECK-INST:  movprfx z23, z3133// CHECK-INST: famin   z23.h, p3/m, z23.h, z13.h34// CHECK-ENCODING: [0xb7,0x8d,0x4f,0x65]35// CHECK-ERROR: instruction requires: faminmax sve2 or sme236// CHECK-UNKNOWN: 654f8db7 <unknown>37 38famin   z31.h, p7/m, z31.h, z30.h  // 01100101-01001111-10011111-1101111139// CHECK-INST: famin   z31.h, p7/m, z31.h, z30.h40// CHECK-ENCODING: [0xdf,0x9f,0x4f,0x65]41// CHECK-ERROR: instruction requires: faminmax sve2 or sme242// CHECK-UNKNOWN: 654f9fdf <unknown>43 44famin   z0.s, p0/m, z0.s, z1.s  // 01100101-10001111-10000000-0010000045// CHECK-INST: famin   z0.s, p0/m, z0.s, z1.s46// CHECK-ENCODING: [0x20,0x80,0x8f,0x65]47// CHECK-ERROR: instruction requires: faminmax sve2 or sme248// CHECK-UNKNOWN: 658f8020 <unknown>49 50movprfx z23, z3151famin   z23.s, p3/m, z23.s, z13.s  // 01100101-10001111-10001101-1011011152// CHECK-INST:  movprfx z23, z3153// CHECK-INST: famin   z23.s, p3/m, z23.s, z13.s54// CHECK-ENCODING: [0xb7,0x8d,0x8f,0x65]55// CHECK-ERROR: instruction requires: faminmax sve2 or sme256// CHECK-UNKNOWN: 658f8db7 <unknown>57 58famin   z31.s, p7/m, z31.s, z30.s  // 01100101-10001111-10011111-1101111159// CHECK-INST: famin   z31.s, p7/m, z31.s, z30.s60// CHECK-ENCODING: [0xdf,0x9f,0x8f,0x65]61// CHECK-ERROR: instruction requires: faminmax sve2 or sme262// CHECK-UNKNOWN: 658f9fdf <unknown>63 64famin   z0.d, p0/m, z0.d, z1.d  // 01100101-11001111-10000000-0010000065// CHECK-INST: famin   z0.d, p0/m, z0.d, z1.d66// CHECK-ENCODING: [0x20,0x80,0xcf,0x65]67// CHECK-ERROR: instruction requires: faminmax sve2 or sme268// CHECK-UNKNOWN: 65cf8020 <unknown>69 70movprfx z23, z3171famin   z23.d, p3/m, z23.d, z13.d  // 01100101-11001111-10001101-1011011172// CHECK-INST:  movprfx z23, z3173// CHECK-INST: famin   z23.d, p3/m, z23.d, z13.d74// CHECK-ENCODING: [0xb7,0x8d,0xcf,0x65]75// CHECK-ERROR: instruction requires: faminmax sve2 or sme276// CHECK-UNKNOWN: 65cf8db7 <unknown>77 78famin   z31.d, p7/m, z31.d, z30.d  // 01100101-11001111-10011111-1101111179// CHECK-INST: famin   z31.d, p7/m, z31.d, z30.d80// CHECK-ENCODING: [0xdf,0x9f,0xcf,0x65]81// CHECK-ERROR: instruction requires: faminmax sve2 or sme282// CHECK-UNKNOWN: 65cf9fdf <unknown>83 84 85// FAMAX86 87famax   z0.h, p0/m, z0.h, z1.h  // 01100101-01001110-10000000-0010000088// CHECK-INST: famax   z0.h, p0/m, z0.h, z1.h89// CHECK-ENCODING: [0x20,0x80,0x4e,0x65]90// CHECK-ERROR: instruction requires: faminmax sve2 or sme291// CHECK-UNKNOWN: 654e8020 <unknown>92 93movprfx z23, z3194famax   z23.h, p3/m, z23.h, z13.h  // 01100101-01001110-10001101-1011011195// CHECK-INST:  movprfx z23, z3196// CHECK-INST: famax   z23.h, p3/m, z23.h, z13.h97// CHECK-ENCODING: [0xb7,0x8d,0x4e,0x65]98// CHECK-ERROR: instruction requires: faminmax sve2 or sme299// CHECK-UNKNOWN: 654e8db7 <unknown>100 101famax   z31.h, p7/m, z31.h, z30.h  // 01100101-01001110-10011111-11011111102// CHECK-INST: famax   z31.h, p7/m, z31.h, z30.h103// CHECK-ENCODING: [0xdf,0x9f,0x4e,0x65]104// CHECK-ERROR: instruction requires: faminmax sve2 or sme2105// CHECK-UNKNOWN: 654e9fdf <unknown>106 107famax   z0.s, p0/m, z0.s, z1.s  // 01100101-10001110-10000000-00100000108// CHECK-INST: famax   z0.s, p0/m, z0.s, z1.s109// CHECK-ENCODING: [0x20,0x80,0x8e,0x65]110// CHECK-ERROR: instruction requires: faminmax sve2 or sme2111// CHECK-UNKNOWN: 658e8020 <unknown>112 113movprfx z23, z31114famax   z23.s, p3/m, z23.s, z13.s  // 01100101-10001110-10001101-10110111115// CHECK-INST:  movprfx z23, z31116// CHECK-INST: famax   z23.s, p3/m, z23.s, z13.s117// CHECK-ENCODING: [0xb7,0x8d,0x8e,0x65]118// CHECK-ERROR: instruction requires: faminmax sve2 or sme2119// CHECK-UNKNOWN: 658e8db7 <unknown>120 121famax   z31.s, p7/m, z31.s, z30.s  // 01100101-10001110-10011111-11011111122// CHECK-INST: famax   z31.s, p7/m, z31.s, z30.s123// CHECK-ENCODING: [0xdf,0x9f,0x8e,0x65]124// CHECK-ERROR: instruction requires: faminmax sve2 or sme2125// CHECK-UNKNOWN: 658e9fdf <unknown>126 127famax   z0.d, p0/m, z0.d, z1.d  // 01100101-11001110-10000000-00100000128// CHECK-INST: famax   z0.d, p0/m, z0.d, z1.d129// CHECK-ENCODING: [0x20,0x80,0xce,0x65]130// CHECK-ERROR: instruction requires: faminmax sve2 or sme2131// CHECK-UNKNOWN: 65ce8020 <unknown>132 133movprfx z23, z31134famax   z23.d, p3/m, z23.d, z13.d  // 01100101-11001110-10001101-10110111135// CHECK-INST:  movprfx z23, z31136// CHECK-INST: famax   z23.d, p3/m, z23.d, z13.d137// CHECK-ENCODING: [0xb7,0x8d,0xce,0x65]138// CHECK-ERROR: instruction requires: faminmax sve2 or sme2139// CHECK-UNKNOWN: 65ce8db7 <unknown>140 141famax   z31.d, p7/m, z31.d, z30.d  // 01100101-11001110-10011111-11011111142// CHECK-INST: famax   z31.d, p7/m, z31.d, z30.d143// CHECK-ENCODING: [0xdf,0x9f,0xce,0x65]144// CHECK-ERROR: instruction requires: faminmax sve2 or sme2145// CHECK-UNKNOWN: 65ce9fdf <unknown>