brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 7523978 Raw
39 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=-sve2p2 - | 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 17expand  z0.b, p0, z0.b  // 00000101-00110001-10000000-0000000018// CHECK-INST: expand  z0.b, p0, z0.b19// CHECK-ENCODING: [0x00,0x80,0x31,0x05]20// CHECK-ERROR: instruction requires: sme2p2 or sve2p221// CHECK-UNKNOWN: 05318000 <unknown>22 23expand  z21.h, p5, z10.h  // 00000101-01110001-10010101-0101010124// CHECK-INST: expand  z21.h, p5, z10.h25// CHECK-ENCODING: [0x55,0x95,0x71,0x05]26// CHECK-ERROR: instruction requires: sme2p2 or sve2p227// CHECK-UNKNOWN: 05719555 <unknown>28 29expand  z23.s, p3, z13.s  // 00000101-10110001-10001101-1011011130// CHECK-INST: expand  z23.s, p3, z13.s31// CHECK-ENCODING: [0xb7,0x8d,0xb1,0x05]32// CHECK-ERROR: instruction requires: sme2p2 or sve2p233// CHECK-UNKNOWN: 05b18db7 <unknown>34 35expand  z31.d, p7, z31.d  // 00000101-11110001-10011111-1111111136// CHECK-INST: expand  z31.d, p7, z31.d37// CHECK-ENCODING: [0xff,0x9f,0xf1,0x05]38// CHECK-ERROR: instruction requires: sme2p2 or sve2p239// CHECK-UNKNOWN: 05f19fff <unknown>