[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/2005-07-17-INT-To-FP.c
Evan Cheng
evan.cheng at apple.com
Thu Feb 9 14:15:42 PST 2006
Changes in directory llvm-test/SingleSource/UnitTests:
2005-07-17-INT-To-FP.c updated: 1.6 -> 1.7
---
Log message:
Fixing the test case: it was testing boundry cases where the result of
conversion is different depending on whether x86 SSE or 387 instructions are
used.
---
Diffs of the changes: (+5 -5)
2005-07-17-INT-To-FP.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Index: llvm-test/SingleSource/UnitTests/2005-07-17-INT-To-FP.c
diff -u llvm-test/SingleSource/UnitTests/2005-07-17-INT-To-FP.c:1.6 llvm-test/SingleSource/UnitTests/2005-07-17-INT-To-FP.c:1.7
--- llvm-test/SingleSource/UnitTests/2005-07-17-INT-To-FP.c:1.6 Fri Jan 27 20:41:13 2006
+++ llvm-test/SingleSource/UnitTests/2005-07-17-INT-To-FP.c Thu Feb 9 16:15:29 2006
@@ -3,7 +3,7 @@
int tests[] = {
0x80000000,
- -123456789,
+ -123456792,
-10,
-2,
-1,
@@ -11,8 +11,8 @@
1,
2,
10,
- 123456789,
- 0x7FFFFFFF
+ 123456792,
+ 0x7FFFFF80
};
int main() {
@@ -34,10 +34,10 @@
}
// edge case tests
for (i = 0; i < (sizeof(tests) / sizeof(int)); i++) {
- printf("%d %f %f %f %f\n", i,
+ printf("%d %f %f %f\n", i,
(double)(unsigned)tests[i],
(double)( signed)tests[i],
- (float) (unsigned)tests[i],
+ (float) tests[i],
(float) ( signed)tests[i]);
}
}
More information about the llvm-commits
mailing list