[llvm] [X86] Fix ABI for passing after i128 (PR #124134)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 23:46:18 PST 2025


================
@@ -78,20 +78,18 @@ define void @call_trailing_arg_on_stack(i128 %x, i64 %y) nounwind {
 ; CHECK-LABEL: call_trailing_arg_on_stack:
 ; CHECK:       # %bb.0:
 ; CHECK-NEXT:    pushq %rax
-; CHECK-NEXT:    movq %rdx, %rax
-; CHECK-NEXT:    movq %rsi, %r9
+; CHECK-NEXT:    movq %rdx, %r9
----------------
phoebewang wrote:

This is relevant too. The `%y` is passing through R9 now for `trailing_arg_on_stack`. (So the function name is not correct anymore :)

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


More information about the llvm-commits mailing list