1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
3 ; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s --check-prefix=X64
4 ; RUN: llc < %s -mtriple=x86_64-- -o /dev/null -stats -info-output-file - | grep asm-printer | grep 12
5 ; RUN: llc < %s -mtriple=i686-- | FileCheck %s --check-prefix=X86
7 declare void @bar(double %x)
8 declare void @barf(float %x)
10 define double @foo() nounwind {
13 ; X64-NEXT: pushq %rax
14 ; X64-NEXT: xorps %xmm0, %xmm0
15 ; X64-NEXT: callq bar@PLT
16 ; X64-NEXT: xorps %xmm0, %xmm0
22 ; X86-NEXT: subl $8, %esp
24 ; X86-NEXT: fstpl (%esp)
25 ; X86-NEXT: calll bar@PLT
27 ; X86-NEXT: addl $8, %esp
29 call void @bar(double 0.0)
34 define float @foof() nounwind {
37 ; X64-NEXT: pushq %rax
38 ; X64-NEXT: xorps %xmm0, %xmm0
39 ; X64-NEXT: callq barf@PLT
40 ; X64-NEXT: xorps %xmm0, %xmm0
47 ; X86-NEXT: calll barf@PLT
48 ; X86-NEXT: addl $4, %esp
51 call void @barf(float 0.0)