<html>
    <head>
      <base href="https://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 --- - [MIPS] integrated-as doesn't parse FreeBSD's fp.S ASM"
   href="https://llvm.org/bugs/show_bug.cgi?id=30381">30381</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[MIPS] integrated-as doesn't parse FreeBSD's fp.S ASM
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>sbruno@freebsd.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=17261" name="attach_17261" title="File from FreeBSD MIPS kernel">attachment 17261</a> <a href="attachment.cgi?id=17261&action=edit" title="File from FreeBSD MIPS kernel">[details]</a></span>
File from FreeBSD MIPS kernel

I've currently bypassed this file in my tests to build FreeBSD MIPS/MIPS64.  If
I try to use clang -integrated-as with it, it fails.


/home/sbruno/clang/build/bin/clang -Wno-typedef-redefinition -Wno-pointer-sign
-Wno-expansion-to-defined -Wno-address-of-packed-member -msoft-float -fpic
-target mips64-unknown-freebsd12.0
--sysroot=/var/tmp/mips.mips64/home/sbruno/mips64-clang/tmp
-B/var/tmp/mips.mips64/home/sbruno/mips64-clang/tmp/usr/bin -c -x
assembler-with-cpp -DLOCORE -O -pipe  -g -nostdinc  -I.
-I/home/sbruno/mips64-clang/sys -I/home/sbruno/mips64-clang/sys/contrib/libfdt
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -fno-pic
-mno-abicalls -G0 -DKERNLOADADDR=0xffffffff80100000 -march=mips64 -mabi=64 -MD 
-MF.depend.fp.o -MTfp.o -msoft-float -ffreestanding -fwrapv -gdwarf-2 -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare
-Wno-error-empty-body -Wno-error-parentheses-equality
-Wno-error-unused-function -Wno-error-pointer-sign
-Wno-error-shift-negative-value    -std=iso9899:1999  -O -pipe  -g -nostdinc 
-I. -I/home/sbruno/mips64-clang/sys
-I/home/sbruno/mips64-clang/sys/contrib/libfdt -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -fno-pic -mno-abicalls -G0
-DKERNLOADADDR=0xffffffff80100000 -march=mips64 -mabi=64 -MD  -MF.depend.fp.o
-MTfp.o -msoft-float -ffreestanding -fwrapv -gdwarf-2 -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__
-Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas
-Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality -Wno-error-unused-function
-Wno-error-pointer-sign -Wno-error-shift-negative-value    -std=iso9899:1999
-D_LOCORE -DLOCORE -Werror /home/sbruno/mips64-clang/sys/mips/mips/fp.S
/home/sbruno/mips64-clang/sys/mips/mips/fp.S:118:2: warning: DWARF2 only
supports one section per compilation unit
 .section .rdata
 ^
/home/sbruno/mips64-clang/sys/mips/mips/fp.S:1619:2: error: too few operands
for instruction
 not $15 # negate $13,$15
 ^
/home/sbruno/mips64-clang/sys/mips/mips/fp.S:1620:2: error: too few operands
for instruction
 not $13
 ^
/home/sbruno/mips64-clang/sys/mips/mips/fp.S:1622:2: error: instruction
requires a CPU feature not currently enabled
 seq $2, $15, $0 # compute carry
 ^
/home/sbruno/mips64-clang/sys/mips/mips/fp.S:1626:2: error: too few operands
for instruction
 not $11 # negate $9,$11
 ^
/home/sbruno/mips64-clang/sys/mips/mips/fp.S:1627:2: error: too few operands
for instruction
 not $9
 ^
/home/sbruno/mips64-clang/sys/mips/mips/fp.S:1629:2: error: instruction
requires a CPU feature not currently enabled
 seq $2, $11, $0 # compute carry</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>