[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c
Duraid Madina
duraid at octopus.com.au
Fri May 13 03:08:45 PDT 2005
Changes in directory llvm-test/SingleSource/UnitTests:
2005-05-11-Popcount-ffs-fls.c updated: 1.2 -> 1.3
---
Log message:
stop testing ctz/clz of zero, as GCC doesn't define these. now, the native/LLC
/CBE outputs should match so this test can finally start passing
---
Diffs of the changes: (+5 -1)
2005-05-11-Popcount-ffs-fls.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm-test/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c
diff -u llvm-test/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c:1.2 llvm-test/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c:1.3
--- llvm-test/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c:1.2 Thu May 12 14:36:19 2005
+++ llvm-test/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c Fri May 13 05:08:33 2005
@@ -49,7 +49,11 @@
int main(void) {
long long l;
- for(i=-10; i<139045193; i*=-3) {
+ /* note: we don't test zero, because the _native_ test will get it
+ * wrong (GCC returns garbage for ctz/clz of 0), and the nightly tester
+ * will wrongly conclude that CBE and LLC are both failing.
+ */
+ for(i=10; i<139045193; i*=-3) {
printf("LLVM: n: %d, clz(n): %d, popcount(n): %d, ctz(n): %d\n",
i, __builtin_clz(i), __builtin_popcount(i), __builtin_ctz(i));
printf("REF : n: %d, clz(n): %d, popcount(n): %d, ctz(n): %d\n",
More information about the llvm-commits
mailing list