<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - inline-asm-fpstack.ll fails -verify-machineinstrs"
   href="http://llvm.org/bugs/show_bug.cgi?id=21931">21931</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>inline-asm-fpstack.ll fails -verify-machineinstrs
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: X86
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jfb@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jfb@google.com, llvmbugs@cs.uiuc.edu, t.p.northover@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Produces the following output:

llc ./llvm/test/CodeGen/X86/inline-asm-fpstack.ll -verify-machineinstrs
-mcpu=generic -mtriple=i386-apple-darwin -no-integrated-as
    .section    __TEXT,__text,regular,pure_instructions
    .globl    _test1
    .align    4, 0x90
_test1:                                 ## @test1
    .cfi_startproc
## BB#0:
    ## InlineAsm Start
    fld0
    ## InlineAsm End
    retl
    .cfi_endproc

    .globl    _test2
    .align    4, 0x90
_test2:                                 ## @test2
    .cfi_startproc
## BB#0:
    ## InlineAsm Start
    fld0
    ## InlineAsm End
    retl
    .cfi_endproc


# After Greedy Register Allocator
# Machine code for function test3: Post SSA
Frame Objects:
  fi#-1: size=10, align=16, fixed, at location [SP+4]

0B    BB#0: derived from LLVM BB %0
16B        %vreg0<def> = LD_Fp80m <fi#-1>, 1, %noreg, 0, %noreg,
%FPSW<imp-def,dead>; mem:LD10[FixedStack-1](align=16) RFP80:%vreg0
32B        %FP0<def> = COPY %vreg0; RFP80:%vreg0
48B        INLINEASM <es:frob > [sideeffect] [attdialect], $0:[reguse], %FP0,
$1:[clobber], %FP0<earlyclobber,imp-def,dead>, $2:[clobber],
%EFLAGS<earlyclobber,imp-def,dead>
64B        RETL

# End machine code for function test3.

*** Bad machine code: No live segment at use ***
- function:    test3
- basic block: BB#0  (0x43ee2e0) [0B;80B)
- instruction: 48B    INLINEASM <es:frob > [sideeffect] [attdialect],
$0:[reguse], %FP0, $1:[clobber], %FP0<earlyclobber,imp-def,dead>, $2:[clobber],
%EFLAGS<earlyclobber,imp-def,dead>
- operand 3:   %FP0
48B is not live in FP0 [32r,32d:1)[48e,48d:0)  0@48e 1@32r
LLVM ERROR: Found 1 machine code errors.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>