[llvm] [FastIsel] Get the right register type for call instruction (PR #164565)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 22 00:17:18 PDT 2025


================
@@ -0,0 +1,19 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
+
+define i8 @test(ptr %f) nounwind {
+; CHECK-LABEL: test:
+; CHECK:       # %bb.0: # %entry
+; CHECK-NEXT:    pushq %rax
+; CHECK-NEXT:    callq foo at PLT
+; CHECK-NEXT:    callq bar at PLT
+; CHECK-NEXT:    popq %rcx
+; CHECK-NEXT:    retq
+entry:
+  %call = call bfloat @foo(ptr %f)
+  %call2 = call noundef zeroext i8 @bar(bfloat %call)
+  ret i8 %call2
+}
+
----------------
arsenm wrote:

Can you add the same testcase wit Han indirect call. Can you also test each case with a non-default calling convention 

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


More information about the llvm-commits mailing list