Add some output for the ffs, ffsl, and their associated builtins to test
the simplify-libcalls for ffs.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@22066 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c b/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c
index 7aa326e..d51e87d 100644
--- a/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c
+++ b/SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c
@@ -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);
}