34 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve-aes2,+sve2p1 < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve-aes2,+ssve-aes < %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=+sve-aes2,+sve2p1 < %s \8// RUN: | llvm-objdump -d --mattr=+sve-aes2,+sve2p1 - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve-aes2,+sve2p1 < %s \10// RUN: | llvm-objdump -d --mattr=-sve-aes2 - | 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=+sve-aes2,+sve2p1 < %s \13// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \14// RUN: | llvm-mc -triple=aarch64 -mattr=+sve-aes2,+sve2p1 -disassemble -show-encoding \15// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST16 17pmlal {z0.q-z1.q}, z0.d, z0.d // 01000101-00100000-11111100-0000000018// CHECK-INST: pmlal { z0.q, z1.q }, z0.d, z0.d19// CHECK-ENCODING: [0x00,0xfc,0x20,0x45]20// CHECK-ERROR: instruction requires: sve or ssve-aes sve-aes221// CHECK-UNKNOWN: 4520fc00 <unknown>22 23pmlal {z22.q-z23.q}, z13.d, z8.d // 01000101-00101000-11111101-1011011024// CHECK-INST: pmlal { z22.q, z23.q }, z13.d, z8.d25// CHECK-ENCODING: [0xb6,0xfd,0x28,0x45]26// CHECK-ERROR: instruction requires: sve or ssve-aes sve-aes227// CHECK-UNKNOWN: 4528fdb6 <unknown>28 29pmlal {z30.q-z31.q}, z31.d, z31.d // 01000101-00111111-11111111-1111111030// CHECK-INST: pmlal { z30.q, z31.q }, z31.d, z31.d31// CHECK-ENCODING: [0xfe,0xff,0x3f,0x45]32// CHECK-ERROR: instruction requires: sve or ssve-aes sve-aes233// CHECK-UNKNOWN: 453ffffe <unknown>34