Home | History | Annotate | Download | only in X86
      1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
      2 ; RUN: llc < %s -mtriple=i386-unknown-linux-gnu  -enable-unsafe-fp-math -mcpu=slm -relocation-model=pic | FileCheck %s --check-prefix=CHECK
      3 
      4 define fastcc float @foo(float %x) unnamed_addr #0 {
      5 ; CHECK-LABEL: foo:
      6 ; CHECK:       # %bb.0: # %entry
      7 ; CHECK-NEXT:    calll .L0$pb
      8 ; CHECK-NEXT:    .cfi_adjust_cfa_offset 4
      9 ; CHECK-NEXT:  .L0$pb:
     10 ; CHECK-NEXT:    popl %eax
     11 ; CHECK-NEXT:    .cfi_adjust_cfa_offset -4
     12 ; CHECK-NEXT:  .Ltmp0:
     13 ; CHECK-NEXT:    addl $_GLOBAL_OFFSET_TABLE_+(.Ltmp0-.L0$pb), %eax
     14 ; CHECK-NEXT:    movss {{.*#+}} xmm1 = mem[0],zero,zero,zero
     15 ; CHECK-NEXT:    divss %xmm0, %xmm1
     16 ; CHECK-NEXT:    movaps %xmm1, %xmm0
     17 ; CHECK-NEXT:    movss %xmm1, (%eax)
     18 ; CHECK-NEXT:    retl
     19 entry:
     20   %div = fdiv fast float 3.0, %x
     21   store float %div, float* undef, align 4
     22   ret float %div
     23 }
     24 
     25 
     26