[llvm-branch-commits] [clang] [llvm] [AArch64][llvm] Armv9.7-A: Add support for GICv5 (FEAT_GCIE) (PR #163159)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Oct 22 05:58:33 PDT 2025
================
@@ -0,0 +1,985 @@
+// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+gcie < %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=+all < %s \
+// RUN: | llvm-objdump -d --mattr=+gcie --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-INST
+// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+all < %s \
+// RUN: | llvm-objdump -d --mattr=-gcie --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-UNKNOWN
+// Disassemble encoding and check the re-encoding (-show-encoding) matches.
+// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+gcie < %s \
+// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
+// RUN: | llvm-mc -triple=aarch64 -mattr=+gcie -disassemble -show-encoding \
----------------
CarolineConcatto wrote:
Can we also add a diagnostic test for GIC, GICR and GSB?
https://github.com/llvm/llvm-project/pull/163159
More information about the llvm-branch-commits
mailing list