Adds sve-sha3 to reference FEAT_SVE_SHA3 without specifically enabling SVE2. The SVE2 requirement for AES, SHA3 and Bitperm is replaced with SVE for non-streaming function.
34 lines
1.9 KiB
ArmAsm
34 lines
1.9 KiB
ArmAsm
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve-aes2,+sve2p1 < %s \
|
|
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
|
|
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve-aes2,+ssve-aes < %s \
|
|
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
|
|
// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
|
|
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR
|
|
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve-aes2,+sve2p1 < %s \
|
|
// RUN: | llvm-objdump -d --mattr=+sve-aes2,+sve2p1 - | FileCheck %s --check-prefix=CHECK-INST
|
|
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve-aes2,+sve2p1 < %s \
|
|
// RUN: | llvm-objdump -d --mattr=-sve-aes2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
|
|
// Disassemble encoding and check the re-encoding (-show-encoding) matches.
|
|
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve-aes2,+sve2p1 < %s \
|
|
// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
|
|
// RUN: | llvm-mc -triple=aarch64 -mattr=+sve-aes2,+sve2p1 -disassemble -show-encoding \
|
|
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
|
|
|
|
pmlal {z0.q-z1.q}, z0.d, z0.d // 01000101-00100000-11111100-00000000
|
|
// CHECK-INST: pmlal { z0.q, z1.q }, z0.d, z0.d
|
|
// CHECK-ENCODING: [0x00,0xfc,0x20,0x45]
|
|
// CHECK-ERROR: instruction requires: sve or ssve-aes sve-aes2
|
|
// CHECK-UNKNOWN: 4520fc00 <unknown>
|
|
|
|
pmlal {z22.q-z23.q}, z13.d, z8.d // 01000101-00101000-11111101-10110110
|
|
// CHECK-INST: pmlal { z22.q, z23.q }, z13.d, z8.d
|
|
// CHECK-ENCODING: [0xb6,0xfd,0x28,0x45]
|
|
// CHECK-ERROR: instruction requires: sve or ssve-aes sve-aes2
|
|
// CHECK-UNKNOWN: 4528fdb6 <unknown>
|
|
|
|
pmlal {z30.q-z31.q}, z31.d, z31.d // 01000101-00111111-11111111-11111110
|
|
// CHECK-INST: pmlal { z30.q, z31.q }, z31.d, z31.d
|
|
// CHECK-ENCODING: [0xfe,0xff,0x3f,0x45]
|
|
// CHECK-ERROR: instruction requires: sve or ssve-aes sve-aes2
|
|
// CHECK-UNKNOWN: 453ffffe <unknown>
|