[llvm] [llvm-ml] Fix RIP-relative addressing for ptr operands (PR #107618)
Eric Astor via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 9 06:54:36 PDT 2024
================
@@ -53,4 +53,10 @@ mov eax, [t8]
; CHECK-LABEL: t8:
; CHECK: mov eax, dword ptr [t8]
-END
\ No newline at end of file
+t9:
+mov eax, dword ptr [bar]
----------------
ericastor wrote:
Oh - and running the same code through LLVM-ML without this change, we get:
```
0000000000000000 <t1>:
0: 8b 04 25 00 00 00 00 movl 0x0, %eax
0000000000000003: IMAGE_REL_AMD64_ADDR32 bar
```
in both cases, which is clearly not a match for ml64.
https://github.com/llvm/llvm-project/pull/107618
More information about the llvm-commits
mailing list