[llvm-bugs] [Bug 30381] New: [MIPS] integrated-as doesn't parse FreeBSD's fp.S ASM

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 14 07:05:56 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30381

            Bug ID: 30381
           Summary: [MIPS] integrated-as doesn't parse FreeBSD's fp.S ASM
           Product: clang
           Version: trunk
          Hardware: Other
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sbruno at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17261
  --> https://llvm.org/bugs/attachment.cgi?id=17261&action=edit
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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160914/4be56d3f/attachment.html>


More information about the llvm-bugs mailing list