[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/convert.c
Guoling Han
han at autoesl.com
Mon Jan 22 15:33:54 PST 2007
Changes in directory llvm-test/SingleSource/UnitTests/Integer:
convert.c updated: 1.1 -> 1.2
---
Log message:
Change convert.c to conform with the coding standard.
---
Diffs of the changes: (+10 -8)
convert.c | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
Index: llvm-test/SingleSource/UnitTests/Integer/convert.c
diff -u llvm-test/SingleSource/UnitTests/Integer/convert.c:1.1 llvm-test/SingleSource/UnitTests/Integer/convert.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/convert.c:1.1 Mon Jan 22 16:38:19 2007
+++ llvm-test/SingleSource/UnitTests/Integer/convert.c Mon Jan 22 17:33:38 2007
@@ -1,11 +1,13 @@
-//===--- convert.c --- Test Cases for Bit Accurate Types --------------===////
-// This file was developed by Guoling han and donated to the LLVM research
-// group and is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//===----------------------------------------------------------------------===////
+//===--- convert.c --- Test Cases for Bit Accurate Types ------------------===//
+//
+// This file was developed by Guoling Han and is distributed under the
+// University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
// This is a test for conversion between different int types.
//
//===----------------------------------------------------------------------===//
+
#include <stdio.h>
typedef int __attribute__ ((bitwidth(7))) int7;
@@ -34,18 +36,18 @@
i15 = (int15)i7;
i31 = (int31)i15;
if(i15 != -1 || i31 != -1)
- printf("error: i15=%d, i31 = %d\n", i15, i31);
+ printf("error: i15=%d, i31 = %d\n", i15, i31);
ui7 = 0x7f;
ui15 = (uint15)ui7;
ui31 = (uint31)ui15;
if(ui15 != 0x7f || ui31 != 0x7f)
- printf("error: ui15=%u, ui31 = %u\n", ui15, ui31);
+ printf("error: ui15=%u, ui31 = %u\n", ui15, ui31);
i31 = -1;
i8 = (int8) i31;
if(i8 != -1)
- printf("error: i8=%d\n", i8);
+ printf("error: i8=%d\n", i8);
i31 = 0xff;
i7 = (int7) i31;
More information about the llvm-commits
mailing list