brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 89461fc Raw
33 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 17frintn  z0.h, p0/z, z0.h  // 01100100-01011000-10000000-0000000018// CHECK-INST: frintn  z0.h, p0/z, z0.h19// CHECK-ENCODING: [0x00,0x80,0x58,0x64]20// CHECK-ERROR: instruction requires: sme2p2 or sve2p221// CHECK-UNKNOWN: 64588000 <unknown>22 23frintn  z23.s, p3/z, z13.s  // 01100100-10011000-10001101-1011011124// CHECK-INST: frintn  z23.s, p3/z, z13.s25// CHECK-ENCODING: [0xb7,0x8d,0x98,0x64]26// CHECK-ERROR: instruction requires: sme2p2 or sve2p227// CHECK-UNKNOWN: 64988db7 <unknown>28 29frintn  z31.d, p7/z, z31.d  // 01100100-11011000-10011111-1111111130// CHECK-INST: frintn  z31.d, p7/z, z31.d31// CHECK-ENCODING: [0xff,0x9f,0xd8,0x64]32// CHECK-ERROR: instruction requires: sme2p2 or sve2p233// CHECK-UNKNOWN: 64d89fff <unknown>