brintos

brintos / llvm-project-archived public Read only

0
0
Text · 8.2 KiB · c460602 Raw
226 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p2 < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p2 < %s \4// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \6// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2p2 < %s \8// RUN:        | llvm-objdump -d --mattr=+sve2p2 - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2p2 < %s \10// RUN:        | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN11// Disassemble encoding and check the re-encoding (-show-encoding) matches.12// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p2 < %s \13// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \14// RUN:        | llvm-mc -triple=aarch64 -mattr=+sve2p2 -disassemble -show-encoding \15// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST16 17// ABS18 19abs     z0.b, p0/z, z0.b  // 00000100-00000110-10100000-0000000020// CHECK-INST: abs     z0.b, p0/z, z0.b21// CHECK-ENCODING: [0x00,0xa0,0x06,0x04]22// CHECK-ERROR: instruction requires: sme2p2 or sve2p223// CHECK-UNKNOWN: 0406a000 <unknown>24 25abs     z31.d, p7/z, z31.d  // 00000100-11000110-10111111-1111111126// CHECK-INST: abs     z31.d, p7/z, z31.d27// CHECK-ENCODING: [0xff,0xbf,0xc6,0x04]28// CHECK-ERROR: instruction requires: sme2p2 or sve2p229// CHECK-UNKNOWN: 04c6bfff <unknown>30 31 32// CLS33 34cls     z0.b, p0/z, z0.b  // 00000100-00001000-10100000-0000000035// CHECK-INST: cls     z0.b, p0/z, z0.b36// CHECK-ENCODING: [0x00,0xa0,0x08,0x04]37// CHECK-ERROR: instruction requires: sme2p2 or sve2p238// CHECK-UNKNOWN: 0408a000 <unknown>39 40clz     z31.d, p7/z, z31.d  // 00000100-11001001-10111111-1111111141// CHECK-INST: clz     z31.d, p7/z, z31.d42// CHECK-ENCODING: [0xff,0xbf,0xc9,0x04]43// CHECK-ERROR: instruction requires: sme2p2 or sve2p244// CHECK-UNKNOWN: 04c9bfff <unknown>45 46// CLZ47 48clz     z0.b, p0/z, z0.b  // 00000100-00001001-10100000-0000000049// CHECK-INST: clz     z0.b, p0/z, z0.b50// CHECK-ENCODING: [0x00,0xa0,0x09,0x04]51// CHECK-ERROR: instruction requires: sme2p2 or sve2p252// CHECK-UNKNOWN: 0409a000 <unknown>53 54clz     z31.d, p7/z, z31.d  // 00000100-11001001-10111111-1111111155// CHECK-INST: clz     z31.d, p7/z, z31.d56// CHECK-ENCODING: [0xff,0xbf,0xc9,0x04]57// CHECK-ERROR: instruction requires: sme2p2 or sve2p258// CHECK-UNKNOWN: 04c9bfff <unknown>59 60// CNOT61 62cnot    z0.b, p0/z, z0.b  // 00000100-00001011-10100000-0000000063// CHECK-INST: cnot    z0.b, p0/z, z0.b64// CHECK-ENCODING: [0x00,0xa0,0x0b,0x04]65// CHECK-ERROR: instruction requires: sme2p2 or sve2p266// CHECK-UNKNOWN: 040ba000 <unknown>67 68cnot    z31.d, p7/z, z31.d  // 00000100-11001011-10111111-1111111169// CHECK-INST: cnot    z31.d, p7/z, z31.d70// CHECK-ENCODING: [0xff,0xbf,0xcb,0x04]71// CHECK-ERROR: instruction requires: sme2p2 or sve2p272// CHECK-UNKNOWN: 04cbbfff <unknown>73 74// CNT75 76cnt     z0.b, p0/z, z0.b  // 00000100-00001010-10100000-0000000077// CHECK-INST: cnt     z0.b, p0/z, z0.b78// CHECK-ENCODING: [0x00,0xa0,0x0a,0x04]79// CHECK-ERROR: instruction requires: sme2p2 or sve2p280// CHECK-UNKNOWN: 040aa000 <unknown>81 82cnt     z31.d, p7/z, z31.d  // 00000100-11001010-10111111-1111111183// CHECK-INST: cnt     z31.d, p7/z, z31.d84// CHECK-ENCODING: [0xff,0xbf,0xca,0x04]85// CHECK-ERROR: instruction requires: sme2p2 or sve2p286// CHECK-UNKNOWN: 04cabfff <unknown>87 88 89// FABS90 91fabs    z0.h, p0/z, z0.h  // 00000100-01001100-10100000-0000000092// CHECK-INST: fabs    z0.h, p0/z, z0.h93// CHECK-ENCODING: [0x00,0xa0,0x4c,0x04]94// CHECK-ERROR: instruction requires: sme2p2 or sve2p295// CHECK-UNKNOWN: 044ca000 <unknown>96 97fabs    z31.d, p7/z, z31.d  // 00000100-11001100-10111111-1111111198// CHECK-INST: fabs    z31.d, p7/z, z31.d99// CHECK-ENCODING: [0xff,0xbf,0xcc,0x04]100// CHECK-ERROR: instruction requires: sme2p2 or sve2p2101// CHECK-UNKNOWN: 04ccbfff <unknown>102 103// FNEG104 105fneg    z0.h, p0/z, z0.h  // 00000100-01001101-10100000-00000000106// CHECK-INST: fneg    z0.h, p0/z, z0.h107// CHECK-ENCODING: [0x00,0xa0,0x4d,0x04]108// CHECK-ERROR: instruction requires: sme2p2 or sve2p2109// CHECK-UNKNOWN: 044da000 <unknown>110 111fneg    z31.d, p7/z, z31.d  // 00000100-11001101-10111111-11111111112// CHECK-INST: fneg    z31.d, p7/z, z31.d113// CHECK-ENCODING: [0xff,0xbf,0xcd,0x04]114// CHECK-ERROR: instruction requires: sme2p2 or sve2p2115// CHECK-UNKNOWN: 04cdbfff <unknown>116 117// NEG118 119neg     z0.b, p0/z, z0.b  // 00000100-00000111-10100000-00000000120// CHECK-INST: neg     z0.b, p0/z, z0.b121// CHECK-ENCODING: [0x00,0xa0,0x07,0x04]122// CHECK-ERROR: instruction requires: sme2p2 or sve2p2123// CHECK-UNKNOWN: 0407a000 <unknown>124 125neg     z31.d, p7/z, z31.d  // 00000100-11000111-10111111-11111111126// CHECK-INST: neg     z31.d, p7/z, z31.d127// CHECK-ENCODING: [0xff,0xbf,0xc7,0x04]128// CHECK-ERROR: instruction requires: sme2p2 or sve2p2129// CHECK-UNKNOWN: 04c7bfff <unknown>130 131//NOT132 133not     z0.b, p0/z, z0.b  // 00000100-00001110-10100000-00000000134// CHECK-INST: not     z0.b, p0/z, z0.b135// CHECK-ENCODING: [0x00,0xa0,0x0e,0x04]136// CHECK-ERROR: instruction requires: sme2p2 or sve2p2137// CHECK-UNKNOWN: 040ea000 <unknown>138 139not     z31.d, p7/z, z31.d  // 00000100-11001110-10111111-11111111140// CHECK-INST: not     z31.d, p7/z, z31.d141// CHECK-ENCODING: [0xff,0xbf,0xce,0x04]142// CHECK-ERROR: instruction requires: sme2p2 or sve2p2143// CHECK-UNKNOWN: 04cebfff <unknown>144 145// SXTB146 147sxtb    z0.h, p0/z, z0.h  // 00000100-01000000-10100000-00000000148// CHECK-INST: sxtb    z0.h, p0/z, z0.h149// CHECK-ENCODING: [0x00,0xa0,0x40,0x04]150// CHECK-ERROR: instruction requires: sme2p2 or sve2p2151// CHECK-UNKNOWN: 0440a000 <unknown>152 153sxtb    z31.d, p7/z, z31.d  // 00000100-11000000-10111111-11111111154// CHECK-INST: sxtb    z31.d, p7/z, z31.d155// CHECK-ENCODING: [0xff,0xbf,0xc0,0x04]156// CHECK-ERROR: instruction requires: sme2p2 or sve2p2157// CHECK-UNKNOWN: 04c0bfff <unknown>158 159// SXTH160 161sxth    z0.s, p0/z, z0.s  // 00000100-10000010-10100000-00000000162// CHECK-INST: sxth    z0.s, p0/z, z0.s163// CHECK-ENCODING: [0x00,0xa0,0x82,0x04]164// CHECK-ERROR: instruction requires: sme2p2 or sve2p2165// CHECK-UNKNOWN: 0482a000 <unknown>166 167sxth    z31.d, p7/z, z31.d  // 00000100-11000010-10111111-11111111168// CHECK-INST: sxth    z31.d, p7/z, z31.d169// CHECK-ENCODING: [0xff,0xbf,0xc2,0x04]170// CHECK-ERROR: instruction requires: sme2p2 or sve2p2171// CHECK-UNKNOWN: 04c2bfff <unknown>172 173// SXTW174 175sxtw    z0.d, p0/z, z0.d  // 00000100-11000100-10100000-00000000176// CHECK-INST: sxtw    z0.d, p0/z, z0.d177// CHECK-ENCODING: [0x00,0xa0,0xc4,0x04]178// CHECK-ERROR: instruction requires: sme2p2 or sve2p2179// CHECK-UNKNOWN: 04c4a000 <unknown>180 181sxtw    z31.d, p7/z, z31.d  // 00000100-11000100-10111111-11111111182// CHECK-INST: sxtw    z31.d, p7/z, z31.d183// CHECK-ENCODING: [0xff,0xbf,0xc4,0x04]184// CHECK-ERROR: instruction requires: sme2p2 or sve2p2185// CHECK-UNKNOWN: 04c4bfff <unknown>186 187// UXTB188 189uxtb    z0.h, p0/z, z0.h  // 00000100-01000001-10100000-00000000190// CHECK-INST: uxtb    z0.h, p0/z, z0.h191// CHECK-ENCODING: [0x00,0xa0,0x41,0x04]192// CHECK-ERROR: instruction requires: sme2p2 or sve2p2193// CHECK-UNKNOWN: 0441a000 <unknown>194 195uxtb    z31.d, p7/z, z31.d  // 00000100-11000001-10111111-11111111196// CHECK-INST: uxtb    z31.d, p7/z, z31.d197// CHECK-ENCODING: [0xff,0xbf,0xc1,0x04]198// CHECK-ERROR: instruction requires: sme2p2 or sve2p2199// CHECK-UNKNOWN: 04c1bfff <unknown>200 201uxth    z0.s, p0/z, z0.s  // 00000100-10000011-10100000-00000000202// CHECK-INST: uxth    z0.s, p0/z, z0.s203// CHECK-ENCODING: [0x00,0xa0,0x83,0x04]204// CHECK-ERROR: instruction requires: sme2p2 or sve2p2205// CHECK-UNKNOWN: 0483a000 <unknown>206 207uxth    z31.d, p7/z, z31.d  // 00000100-11000011-10111111-11111111208// CHECK-INST: uxth    z31.d, p7/z, z31.d209// CHECK-ENCODING: [0xff,0xbf,0xc3,0x04]210// CHECK-ERROR: instruction requires: sme2p2 or sve2p2211// CHECK-UNKNOWN: 04c3bfff <unknown>212 213// UXTW214 215uxtw    z0.d, p0/z, z0.d  // 00000100-11000101-10100000-00000000216// CHECK-INST: uxtw    z0.d, p0/z, z0.d217// CHECK-ENCODING: [0x00,0xa0,0xc5,0x04]218// CHECK-ERROR: instruction requires: sme2p2 or sve2p2219// CHECK-UNKNOWN: 04c5a000 <unknown>220 221uxtw    z31.d, p7/z, z31.d  // 00000100-11000101-10111111-11111111222// CHECK-INST: uxtw    z31.d, p7/z, z31.d223// CHECK-ENCODING: [0xff,0xbf,0xc5,0x04]224// CHECK-ERROR: instruction requires: sme2p2 or sve2p2225// CHECK-UNKNOWN: 04c5bfff <unknown>226