[LLVMbugs] [Bug 11890] New: X86 intel syntax misprints st(0) operand with AT&T syntax

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 30 14:26:55 PST 2012


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

             Bug #: 11890
           Summary: X86 intel syntax misprints st(0) operand with AT&T
                    syntax
           Product: new-bugs
           Version: 3.0
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: arcata at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The following IR:

```
define double @foo(double %x, double %y, double %z) nounwind readnone {
  %1 = fsub double %x, %y
  %2 = fsub double %1, %z
  %3 = fsub double %1, %2
  ret double %3
}
```

compiles to the following asm with `llc -O0 -mtriple=i386-pc-linux -mattr=-sse
-x86-asm-syntax=intel <foo.ll`:

```
foo:                                    # @foo
# BB#0:
    fld    QWORD PTR [ESP + 20]
    fld    QWORD PTR [ESP + 12]
    fld    QWORD PTR [ESP + 4]
    fsubrp    ST(1)
    fsubr    ST(1), %ST(0)
    fsubrp    ST(1)
    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.



More information about the llvm-bugs mailing list