brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 95a98a5 Raw
54 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 42; REQUIRES: asserts3; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s --check-prefix=X644; RUN: llc < %s -mtriple=x86_64-- -o /dev/null -stats  -info-output-file - | grep asm-printer  | grep 125; RUN: llc < %s -mtriple=i686-- | FileCheck %s --check-prefix=X866 7declare void @bar(double %x)8declare void @barf(float %x)9 10define double @foo() nounwind {11; X64-LABEL: foo:12; X64:       # %bb.0:13; X64-NEXT:    pushq %rax14; X64-NEXT:    xorps %xmm0, %xmm015; X64-NEXT:    callq bar@PLT16; X64-NEXT:    xorps %xmm0, %xmm017; X64-NEXT:    popq %rax18; X64-NEXT:    retq19;20; X86-LABEL: foo:21; X86:       # %bb.0:22; X86-NEXT:    subl $8, %esp23; X86-NEXT:    fldz24; X86-NEXT:    fstpl (%esp)25; X86-NEXT:    calll bar@PLT26; X86-NEXT:    fldz27; X86-NEXT:    addl $8, %esp28; X86-NEXT:    retl29  call void @bar(double 0.0)30  ret double 0.031}32 33 34define float @foof() nounwind {35; X64-LABEL: foof:36; X64:       # %bb.0:37; X64-NEXT:    pushq %rax38; X64-NEXT:    xorps %xmm0, %xmm039; X64-NEXT:    callq barf@PLT40; X64-NEXT:    xorps %xmm0, %xmm041; X64-NEXT:    popq %rax42; X64-NEXT:    retq43;44; X86-LABEL: foof:45; X86:       # %bb.0:46; X86-NEXT:    pushl $047; X86-NEXT:    calll barf@PLT48; X86-NEXT:    addl $4, %esp49; X86-NEXT:    fldz50; X86-NEXT:    retl51  call void @barf(float 0.0)52  ret float 0.053}54