30 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- -tailcallopt | FileCheck %s3 4; Bug 4396. This tail call can NOT be optimized.5 6declare fastcc ptr @_D3gcx2GC12mallocNoSyncMFmkZPv() nounwind7 8define fastcc ptr @_D3gcx2GC12callocNoSyncMFmkZPv() nounwind {9; CHECK-LABEL: _D3gcx2GC12callocNoSyncMFmkZPv:10; CHECK: # %bb.0: # %entry11; CHECK-NEXT: pushl %esi12; CHECK-NEXT: calll _D3gcx2GC12mallocNoSyncMFmkZPv@PLT13; CHECK-NEXT: movl %eax, %esi14; CHECK-NEXT: pushl $015; CHECK-NEXT: pushl $216; CHECK-NEXT: pushl $017; CHECK-NEXT: pushl %eax18; CHECK-NEXT: calll memset@PLT19; CHECK-NEXT: addl $16, %esp20; CHECK-NEXT: movl %esi, %eax21; CHECK-NEXT: popl %esi22; CHECK-NEXT: retl23entry:24 %tmp6 = tail call fastcc ptr @_D3gcx2GC12mallocNoSyncMFmkZPv() ; <ptr> [#uses=2]25 %tmp9 = tail call ptr @memset(ptr %tmp6, i32 0, i64 2) ; <ptr> [#uses=0]26 ret ptr %tmp627}28 29declare ptr @memset(ptr, i32, i64)30