[llvm] [x86] Enable indirect tail calls with more arguments (PR #137643)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 19 07:24:22 PST 2025
================
@@ -0,0 +1,26 @@
+; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s --check-prefix=LIN
+; RUN: llc < %s -mtriple=x86_64-pc-windows-msvc | FileCheck %s --check-prefix=WIN
+
+; The callee address computation should get folded into the call.
+; CHECK-LABEL: f:
+; CHECK-NOT: mov
+; LIN: jmpq *(%rdi,%rsi,8)
+; WIN: rex64 jmpq *(%rcx,%rdx,8)
+define void @f(ptr %table, i64 %idx, i64 %aux1, i64 %aux2, i64 %aux3) {
+entry:
+ %arrayidx = getelementptr inbounds ptr, ptr %table, i64 %idx
----------------
antoniofrighetto wrote:
Should have a test addressing from a global too?
https://github.com/llvm/llvm-project/pull/137643
More information about the llvm-commits
mailing list