[clang] [clang][AArch64] Add validation for Global Register Variable. (PR #94271)
Daniel Kiss via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 11 12:33:24 PDT 2024
================
@@ -0,0 +1,13 @@
+// Check that -ffixed register handled for globals.
+// Regression test for #76426
+// RUN: %clang --target=aarch64-none-gnu -ffixed-x15 -### %s 2>&1 | FileCheck %s
+// CHECK-NOT: fatal error: error in backend: Invalid register name "x15".
----------------
DanielKristofKiss wrote:
Right! I'd keep the bugreport as is for regression test but added a new tests for the reg check.
https://github.com/llvm/llvm-project/pull/94271
More information about the cfe-commits
mailing list