Home | History | Annotate | Download | only in X86
      1 ; REQUIRES: asserts
      2 ; RUN: llc < %s -march=x86-64 | FileCheck %s --check-prefix=CHECK-64
      3 ; RUN: llc < %s -march=x86-64 -o /dev/null -stats  -info-output-file - | grep asm-printer  | grep 12
      4 ; RUN: llc < %s -march=x86 | FileCheck %s --check-prefix=CHECK-32
      5 
      6 declare void @bar(double %x)
      7 declare void @barf(float %x)
      8 
      9 define double @foo() nounwind {
     10 
     11   call void @bar(double 0.0)
     12   ret double 0.0
     13 
     14 ;CHECK-32-LABEL: foo:
     15 ;CHECK-32: call
     16 ;CHECK-32: fldz
     17 ;CHECK-32: ret
     18 
     19 ;CHECK-64-LABEL: foo:
     20 ;CHECK-64: xorps
     21 ;CHECK-64: call
     22 ;CHECK-64: xorps
     23 ;CHECK-64: ret
     24 }
     25 
     26 
     27 define float @foof() nounwind {
     28   call void @barf(float 0.0)
     29   ret float 0.0
     30 
     31 ;CHECK-32-LABEL: foof:
     32 ;CHECK-32: call
     33 ;CHECK-32: fldz
     34 ;CHECK-32: ret
     35 
     36 ;CHECK-64-LABEL: foof:
     37 ;CHECK-64: xorps
     38 ;CHECK-64: call
     39 ;CHECK-64: xorps
     40 ;CHECK-64: ret
     41 }
     42