<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I'd expect these builtins to be
      provided on the XCore target. In what way does the test fail
      without this change?<br>
      <br>
      On 13/02/14 19:19, robert lytton wrote:<br>
    </div>
    <blockquote
      cite="mid:34a1bbd8842b5b28d1e6e23e9132c6d0@llvm-reviews.chandlerc.com"
      type="cite">
      <pre wrap="">robertlytton added you to the CC list for the revision "XCore target: add support to build SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls".

<a class="moz-txt-link-freetext" href="http://llvm-reviews.chandlerc.com/D2772">http://llvm-reviews.chandlerc.com/D2772</a>

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
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
llvm-commits mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Richard Osborne | XMOS
<a class="moz-txt-link-freetext" href="http://www.xmos.com">http://www.xmos.com</a>
</pre>
  </body>
</html>