brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 3eb9c2d Raw
45 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=-sve - | 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 17rbit    z0.b, p0/z, z0.b  // 00000101-00100111-10100000-0000000018// CHECK-INST: rbit    z0.b, p0/z, z0.b19// CHECK-ENCODING: [0x00,0xa0,0x27,0x05]20// CHECK-ERROR: instruction requires: sme2p2 or sve2p221// CHECK-UNKNOWN: 0527a000 <unknown>22 23rbit    z21.b, p5/z, z10.b  // 00000101-00100111-10110101-0101010124// CHECK-INST: rbit    z21.b, p5/z, z10.b25// CHECK-ENCODING: [0x55,0xb5,0x27,0x05]26// CHECK-ERROR: instruction requires: sme2p2 or sve2p227// CHECK-UNKNOWN: 0527b555 <unknown>28 29rbit    z23.h, p3/z, z13.h  // 00000101-01100111-10101101-1011011130// CHECK-INST: rbit    z23.h, p3/z, z13.h31// CHECK-ENCODING: [0xb7,0xad,0x67,0x05]32// CHECK-ERROR: instruction requires: sme2p2 or sve2p233// CHECK-UNKNOWN: 0567adb7 <unknown>34 35rbit    z23.s, p3/z, z13.s  // 00000101-10100111-10101101-1011011136// CHECK-INST: rbit    z23.s, p3/z, z13.s37// CHECK-ENCODING: [0xb7,0xad,0xa7,0x05]38// CHECK-ERROR: instruction requires: sme2p2 or sve2p239// CHECK-UNKNOWN: 05a7adb7 <unknown>40 41rbit    z31.d, p7/z, z31.d  // 00000101-11100111-10111111-1111111142// CHECK-INST: rbit    z31.d, p7/z, z31.d43// CHECK-ENCODING: [0xff,0xbf,0xe7,0x05]44// CHECK-ERROR: instruction requires: sme2p2 or sve2p245// CHECK-UNKNOWN: 05e7bfff <unknown>