[PATCH] XCore target: add support to build SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls
robert lytton
robert at xmos.com
Fri Feb 14 06:13:51 PST 2014
Hi Richard,
You are quire right, the fix was too broad, the builtins are available.
The only missing item is ffsl (not provided by newlib).
Also, where ffs() is defined seems to vary e.g. : strings.h, string.h, stdio.h.
I'll add suitable declaration & define to our xcoretestsuite.h
New patch uploaded.
Robert
http://llvm-reviews.chandlerc.com/D2772
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D2772?vs=7070&id=7128#toc
Files:
SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c
Index: SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c
===================================================================
--- SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c
+++ SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c
@@ -3,6 +3,9 @@
* http://www.hackersdelight.org/HDcode/ntz.cc
*/
#include <stdio.h>
+#if defined(__XS1B__)
+#include "xcoretestsuite.h"
+#endif
#define u 99
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2772.2.patch
Type: text/x-patch
Size: 409 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140214/640b1f9d/attachment.bin>
More information about the llvm-commits
mailing list