brintos

brintos / llvm-project-archived public Read only

0
0
Text · 730 B · 6a856c3 Raw
25 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 42; RUN: llc -mtriple=x86_64-linux-gnu -global-isel < %s | FileCheck %s --check-prefix=X643; RUN: llc -mtriple=i686-linux-gnu -global-isel < %s | FileCheck %s --check-prefix=X864 5declare ptr @foo()6 7define ptr @aligned_tailcall() nounwind {8; X64-LABEL: aligned_tailcall:9; X64:       # %bb.0: # %entry10; X64-NEXT:    pushq %rax11; X64-NEXT:    callq foo12; X64-NEXT:    popq %rcx13; X64-NEXT:    retq14;15; X86-LABEL: aligned_tailcall:16; X86:       # %bb.0: # %entry17; X86-NEXT:    subl $12, %esp18; X86-NEXT:    calll foo19; X86-NEXT:    addl $12, %esp20; X86-NEXT:    retl21entry:22  %call = tail call align 8 ptr @foo()23  ret ptr %call24}25