Skip to content

Commit d8287ca

Browse files
committed
fixup! [AArch64][llvm] Armv9.7-A: Add support for Memory Partitioning and Management (FEAT_MPAMv2)
Add extra diagnostic tests and fix test args
1 parent e08178c commit d8287ca

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

llvm/test/MC/AArch64/armv9.7a-mpamv2-diagnostics.s

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@
77

88
mlbi alle1, x30
99
// CHECK-ERROR: error: specified mlbi op does not use a register
10+
11+
mlbi vmalle1, x30
12+
// CHECK-ERROR: error: specified mlbi op does not use a register
13+
14+
mlbi vpide1
15+
// CHECK-ERROR: error: specified mlbi op requires a register
16+
17+
mlbi vpmge1
18+
// CHECK-ERROR: error: specified mlbi op requires a register

llvm/test/MC/AArch64/armv9.7a-mpamv2.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
33
// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
44
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR
5-
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+all < %s \
5+
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+mpamv2 < %s \
66
// RUN: | llvm-objdump -d --mattr=+mpamv2 --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-INST
7-
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+all < %s \
7+
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+mpamv2 < %s \
88
// RUN: | llvm-objdump -d --mattr=-mpamv2 --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-UNKNOWN
99
// Disassemble encoding and check the re-encoding (-show-encoding) matches.
1010
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+mpamv2 < %s \

0 commit comments

Comments
 (0)