[llvm] 78be5ae - [X86] Regenerate tail-call-casts.ll test coverage
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 09:59:03 PDT 2023
Author: Simon Pilgrim
Date: 2023-07-17T17:58:37+01:00
New Revision: 78be5aebaaf068e2a1496ff885eb1281c3fafb6a
URL: https://github.com/llvm/llvm-project/commit/78be5aebaaf068e2a1496ff885eb1281c3fafb6a
DIFF: https://github.com/llvm/llvm-project/commit/78be5aebaaf068e2a1496ff885eb1281c3fafb6a.diff
LOG: [X86] Regenerate tail-call-casts.ll test coverage
Added:
Modified:
llvm/test/CodeGen/X86/tail-call-casts.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/tail-call-casts.ll b/llvm/test/CodeGen/X86/tail-call-casts.ll
index 5421b498e1ea26..5224e636819b18 100644
--- a/llvm/test/CodeGen/X86/tail-call-casts.ll
+++ b/llvm/test/CodeGen/X86/tail-call-casts.ll
@@ -1,27 +1,28 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
; RUN: llc -mtriple=i686-unknown-linux-gnu -o - %s | FileCheck %s
declare void @g_bool(i1 zeroext)
+
+; Forwarding a bool in a tail call works.
define void @f_bool(i1 zeroext %x) {
+; CHECK-LABEL: f_bool:
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: jmp g_bool at PLT # TAILCALL
entry:
tail call void @g_bool(i1 zeroext %x)
ret void
-
-; Forwarding a bool in a tail call works.
-; CHECK-LABEL: f_bool:
-; CHECK-NOT: movz
-; CHECK: jmp g_bool
}
declare void @g_float(float)
+
+; Forwarding a bitcasted value works too.
define void @f_i32(i32 %x) {
+; CHECK-LABEL: f_i32:
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: jmp g_float at PLT # TAILCALL
entry:
%0 = bitcast i32 %x to float
tail call void @g_float(float %0)
ret void
-
-; Forwarding a bitcasted value works too.
-; CHECK-LABEL: f_i32
-; CHECK-NOT: mov
-; CHECK: jmp g_float
}
More information about the llvm-commits
mailing list