Skip to content

Commit 78be5ae

Browse files
committed
[X86] Regenerate tail-call-casts.ll test coverage
1 parent 582e1d5 commit 78be5ae

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
12
; RUN: llc -mtriple=i686-unknown-linux-gnu -o - %s | FileCheck %s
23

34
declare void @g_bool(i1 zeroext)
5+
6+
; Forwarding a bool in a tail call works.
47
define void @f_bool(i1 zeroext %x) {
8+
; CHECK-LABEL: f_bool:
9+
; CHECK: # %bb.0: # %entry
10+
; CHECK-NEXT: jmp g_bool@PLT # TAILCALL
511
entry:
612
tail call void @g_bool(i1 zeroext %x)
713
ret void
8-
9-
; Forwarding a bool in a tail call works.
10-
; CHECK-LABEL: f_bool:
11-
; CHECK-NOT: movz
12-
; CHECK: jmp g_bool
1314
}
1415

1516

1617
declare void @g_float(float)
18+
19+
; Forwarding a bitcasted value works too.
1720
define void @f_i32(i32 %x) {
21+
; CHECK-LABEL: f_i32:
22+
; CHECK: # %bb.0: # %entry
23+
; CHECK-NEXT: jmp g_float@PLT # TAILCALL
1824
entry:
1925
%0 = bitcast i32 %x to float
2026
tail call void @g_float(float %0)
2127
ret void
22-
23-
; Forwarding a bitcasted value works too.
24-
; CHECK-LABEL: f_i32
25-
; CHECK-NOT: mov
26-
; CHECK: jmp g_float
2728
}

0 commit comments

Comments
 (0)