brintos

brintos / llvm-project-archived public Read only

0
0
Text · 728 B · 5224e63 Raw
29 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 22; RUN: llc -mtriple=i686-unknown-linux-gnu -o - %s | FileCheck %s3 4declare void @g_bool(i1 zeroext)5 6; Forwarding a bool in a tail call works.7define void @f_bool(i1 zeroext %x) {8; CHECK-LABEL: f_bool:9; CHECK:       # %bb.0: # %entry10; CHECK-NEXT:    jmp g_bool@PLT # TAILCALL11entry:12  tail call void @g_bool(i1 zeroext %x)13  ret void14}15 16 17declare void @g_float(float)18 19; Forwarding a bitcasted value works too.20define void @f_i32(i32 %x) {21; CHECK-LABEL: f_i32:22; CHECK:       # %bb.0: # %entry23; CHECK-NEXT:    jmp g_float@PLT # TAILCALL24entry:25  %0 = bitcast i32 %x to float26  tail call void @g_float(float %0)27  ret void28}29