[llvm] [AArch64][llvm] Unify AArch64 tests into a single file (1/4) (NFC) (PR #146328)
Jonathan Thackray via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 30 09:10:28 PDT 2025
================
@@ -1,10 +1,28 @@
-// RUN: llvm-mc -triple aarch64 -show-encoding %s | FileCheck %s
+// RUN: llvm-mc -triple=aarch64 -show-encoding < %s \
+// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
+// RUN: llvm-mc -triple=aarch64 -filetype=obj < %s \
+// RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-INST
+// RUN: llvm-mc -triple=aarch64 -filetype=obj < %s \
+// RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
----------------
jthackray wrote:
For gated instructions, these two lines have either `+mattr=+foo` or `+mattr=-foo` but for non-gated system register accesses, it doesn't make sense, so I've removed the `CHECK-INST` line which is already checked.
https://github.com/llvm/llvm-project/pull/146328
More information about the llvm-commits
mailing list