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: unassignedclangb...@nondot.org Reporter: sbr...@freebsd.org CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs