[llvm-commits] [test-suite] r39981 - in /test-suite/trunk/SingleSource/UnitTests/Integer: integer_all_onesp.c integer_all_onesp.reference_output
Reid Spencer
rspencer at reidspencer.com
Tue Jul 17 13:11:11 PDT 2007
Author: reid
Date: Tue Jul 17 15:11:11 2007
New Revision: 39981
URL: http://llvm.org/viewvc/llvm-project?rev=39981&view=rev
Log:
Update this test to show the output of the thing it is testing.
Modified:
test-suite/trunk/SingleSource/UnitTests/Integer/integer_all_onesp.c
test-suite/trunk/SingleSource/UnitTests/Integer/integer_all_onesp.reference_output
Modified: test-suite/trunk/SingleSource/UnitTests/Integer/integer_all_onesp.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Integer/integer_all_onesp.c?rev=39981&r1=39980&r2=39981&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Integer/integer_all_onesp.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/Integer/integer_all_onesp.c Tue Jul 17 15:11:11 2007
@@ -3,7 +3,11 @@
int main(int argc, char **argv) {
typedef uint256 BitType;
- BitType X = rand() % bitwidthof(BitType);
+ BitType X = -1;
- return 0;
+ printf("uint256 X = -1 -> ");
+ printBits(X);
+ printf("\n");
+
+ return (int) X;
}
Modified: test-suite/trunk/SingleSource/UnitTests/Integer/integer_all_onesp.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Integer/integer_all_onesp.reference_output?rev=39981&r1=39980&r2=39981&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Integer/integer_all_onesp.reference_output (original)
+++ test-suite/trunk/SingleSource/UnitTests/Integer/integer_all_onesp.reference_output Tue Jul 17 15:11:11 2007
@@ -1 +1,2 @@
-exit 0
+uint256 X = -1 -> 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
+exit 255
More information about the llvm-commits
mailing list