[PATCH] XCore target: add support to build SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls

robert lytton robert at xmos.com
Thu Feb 13 11:19:39 PST 2014


robertlytton added you to the CC list for the revision "XCore target: add support to build SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls".

http://llvm-reviews.chandlerc.com/D2772

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
@@ -57,7 +57,7 @@
 }
 
 /* Work with non-gcc compilers and GCC before 4.0 */
-#if !defined(__GNUC__) || __GNUC__ < 4
+#if !defined(__GNUC__) || __GNUC__ < 4 || defined(__XS1B__)
 #define __builtin_clz nlz10b
 #define __builtin_popcount pop
 #define __builtin_ctz ntz8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2772.1.patch
Type: text/x-patch
Size: 510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/b0121d05/attachment.bin>


More information about the llvm-commits mailing list