1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc -mtriple=i686-unknown-linux-gnu -o - %s | FileCheck %s
4 declare void @g_bool(i1 zeroext)
6 ; Forwarding a bool in a tail call works.
7 define void @f_bool(i1 zeroext %x) {
9 ; CHECK: # %bb.0: # %entry
10 ; CHECK-NEXT: jmp g_bool@PLT # TAILCALL
12 tail call void @g_bool(i1 zeroext %x)
17 declare void @g_float(float)
19 ; Forwarding a bitcasted value works too.
20 define void @f_i32(i32 %x) {
22 ; CHECK: # %bb.0: # %entry
23 ; CHECK-NEXT: jmp g_float@PLT # TAILCALL
25 %0 = bitcast i32 %x to float
26 tail call void @g_float(float %0)