[llvm] [X86] Correct 32-bit immediate assertion and fix 64-bit lowering for huge frame offsets (PR #123872)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 31 23:59:21 PDT 2025


================
@@ -0,0 +1,81 @@
+; RUN: not llc < %s -mtriple=i686 -filetype=null 2>&1 | FileCheck %s -check-prefix=ERR-i686
+; RUN: llc < %s -mtriple=x86_64 | FileCheck %s -check-prefix=x86_64
+
+; Regression test for #121932, #113856, #106352, #69365, #25051 which are caused by
+; an incorrectly written assertion for 64-bit offsets when compiling for 32-bit X86.
+
+define i32 @main() #0 {
+; ERR-i686: error: <unknown>:0:0: Requesting 64-bit offset in 32-bit immediate
----------------
arsenm wrote:

```suggestion
; ERR-i686: error: <unknown>:0:0: requesting 64-bit offset in 32-bit immediate
```

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


More information about the llvm-commits mailing list