[llvm] [AArch64] Refactor @plt, @gotpcrel, and @AUTH to use parseDataExpr (PR #134202)

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 4 09:04:27 PDT 2025


================
@@ -32,13 +33,21 @@ data1:
 .word extern at GOTPCREL-5
 
 .ifdef ERR
-# ERR: [[#@LINE+1]]:7: error: symbol 'und' can not be undefined in a subtraction expression
-.word extern at plt - und
+# ERR: [[#@LINE+1]]:9: error: @ specifier only allowed after a symbol
+.quad 3 at plt - .
+
+# ERR: [[#@LINE+1]]:9: error: expected ')'
+.quad (l at plt - .)
+.endif
----------------
smithp35 wrote:

Github's UI makes the `l` look very similar to a `1`. Likely not a problem in plain text, but it looks a bit strange when reviewing after `3 at plt`.

https://github.com/llvm/llvm-project/pull/134202


More information about the llvm-commits mailing list