software: platform configuration file for compiler-rt
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Tue, 29 May 2012 14:40:04 +0000 (16:40 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Tue, 29 May 2012 14:40:04 +0000 (16:40 +0200)
software/compiler-rt/lm32.mk [new file with mode: 0644]

diff --git a/software/compiler-rt/lm32.mk b/software/compiler-rt/lm32.mk
new file mode 100644 (file)
index 0000000..7a36a15
--- /dev/null
@@ -0,0 +1,16 @@
+Description := LatticeMico32
+
+Configs := lm32
+Arch := lm32
+
+CC := clang
+
+# TODO: mico32 should be renamed lm32 in LLVM
+CFLAGS := -Wall -Werror -O3 -D_YUGA_LITTLE_ENDIAN=0 -D_YUGA_BIG_ENDIAN=1 -ccc-host-triple mico32-elf
+
+FUNCTIONS := divsi3 modsi3 comparedf2 negsf2 negdf2 addsf3 subsf3 mulsf3 divsf3 \
+  floatsisf floatunsisf fixsfsi fixunssfsi adddf3 subdf3 muldf3 divdf3 floatsidf floatunsidf fixdfsi fixunsdfsi
+
+# Those are already implemented in HW and should not be needed.
+# But the other functions directly depend on them.
+FUNCTIONS += udivsi3 lshrdi3 muldi3 ashldi3