[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-bugs
Subject:    [LLVMbugs] [Bug 879] [X86] No support for fp stack in inline asm
From:       bugzilla-daemon () llvm ! org
Date:       2011-06-28 18:49:44
Message-ID: 20110628184944.962BF2A6C12F () llvm ! org
[Download RAW message or body]

http://llvm.org/bugs/show_bug.cgi?id=879

Jakob Stoklund Olesen <stoklund@2pi.dk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #39 from Jakob Stoklund Olesen <stoklund@2pi.dk> 2011-06-28 13:49:42 CDT ---
Fixed in r134018

Chris' tests now produce:


_floor:                                 ## @floor
## BB#0:                                ## %entry
    pushl    %ebp
    movl    %esp, %ebp
    fldl    8(%ebp)
    ## InlineAsm Start
    frndint
    ## InlineAsm End
    popl    %ebp
    ret

    .globl    _test
    .align    4, 0x90
_test:                                  ## @test
## BB#0:                                ## %entry
    pushl    %ebp
    movl    %esp, %ebp
    fldl    16(%ebp)
    fldl    8(%ebp)
    ## InlineAsm Start
    fucomip %st(1), %st; seta %al
    ## InlineAsm End
    fstp    %st(0)
    movsbl    %al, %eax
    popl    %ebp
    ret

    .globl    _test2
    .align    4, 0x90
_test2:                                 ## @test2
## BB#0:                                ## %entry
    pushl    %ebp
    movl    %esp, %ebp
    fld1
    fldl    8(%ebp)
    fxch
    ## InlineAsm Start
    fscale
    ## InlineAsm End
    fstp    %st(1)
    popl    %ebp
    ret

Roman's ldexp:

_ldexp:                                 ## @ldexp
## BB#0:                                ## %entry
    pushl    %ebp
    movl    %esp, %ebp
    pushl    %eax
    movl    16(%ebp), %eax
    movl    %eax, -4(%ebp)
    fildl    -4(%ebp)
    fldl    8(%ebp)
    ## InlineAsm Start
    fscale 
    ## InlineAsm End
    fstp    %st(1)
    addl    $4, %esp
    popl    %ebp
    ret

Dimitry:

_irint:                                 ## @irint
## BB#0:                                ## %entry
    pushl    %ebp
    movl    %esp, %ebp
    pushl    %eax
    fldl    8(%ebp)
    ## InlineAsm Start
    fistl -4(%ebp)
    ## InlineAsm End
    fstp    %st(0)
    movl    -4(%ebp), %eax
    addl    $4, %esp
    popl    %ebp
    ret

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic