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

Richard Osborne richard at xmos.com
Fri Feb 14 02:59:33 PST 2014


I'd expect these builtins to be provided on the XCore target. In what 
way does the test fail without this change?

On 13/02/14 19:19, robert lytton wrote:
> 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
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


-- 
Richard Osborne | XMOS
http://www.xmos.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140214/c824c9b7/attachment.html>


More information about the llvm-commits mailing list