[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c
Reid Spencer
reid at x10sys.com
Sun May 15 14:18:57 PDT 2005
Changes in directory llvm-test/SingleSource/UnitTests:
2005-05-11-Popcount-ffs-fls.c updated: 1.3 -> 1.4
---
Log message:
Add some output for the ffs, ffsl, and their associated builtins to test
the simplify-libcalls for ffs.
---
Diffs of the changes: (+7 -0)
2005-05-11-Popcount-ffs-fls.c | 7 +++++++
1 files changed, 7 insertions(+)
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.3 llvm-test/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c:1.4
--- llvm-test/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c:1.3 Fri May 13 05:08:33 2005
+++ llvm-test/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c Sun May 15 16:18:45 2005
@@ -71,6 +71,13 @@
l++;
}
+ // Check some boundary and other cases for FFS call
+ printf("FFS: 0:%d, 1:%d, 2:%d, 7:%d, 1024:%d, i:%d, l:%d\n",
+ ffs(0), ffs(1), ffs(2), ffs(7), ffs(1024), ffs(i), ffsl(l));
+ printf("__builtin_ffs: 0:%d, 1:%d, 2:%d, 7:%d, 1024:%d, i:%d l:%d\n",
+ __builtin_ffs(0), __builtin_ffs(1), __builtin_ffs(2), __builtin_ffs(7),
+ __builtin_ffs(1024), __builtin_ffs(i), __builtin_ffsl(l));
+
return(0);
}
More information about the llvm-commits
mailing list