Changes in directory llvm-test/SingleSource/UnitTests/Integer:
constval.cpp updated: 1.2 -> 1.3 constval.reference_output updated: 1.2 -> 1.3 --- Log message: Update to include a test case with a signed value to ensure sign extension is working correctly. --- Diffs of the changes: (+7 -0) constval.cpp | 6 ++++++ constval.reference_output | 1 + 2 files changed, 7 insertions(+) Index: llvm-test/SingleSource/UnitTests/Integer/constval.cpp diff -u llvm-test/SingleSource/UnitTests/Integer/constval.cpp:1.2 llvm-test/SingleSource/UnitTests/Integer/constval.cpp:1.3 --- llvm-test/SingleSource/UnitTests/Integer/constval.cpp:1.2 Wed May 16 14:34:37 2007 +++ llvm-test/SingleSource/UnitTests/Integer/constval.cpp Thu May 17 12:29:58 2007 @@ -29,9 +29,15 @@ int69 a = bitsFromOctalString("01234567012345670123456", 69); printf( "\na = " ); printBits(a); + int68 b = bitsFromBinaryString("10101010101010101010101010101010101010101010101010101010101010101010", 68); printf( "\nb = " ); printBits(b); + + int169 c = bitsFromString("-1234567890123456789012345678901234567890", 169); + printf( "\nc = " ); + printBits(c); + printf("\n"); } Index: llvm-test/SingleSource/UnitTests/Integer/constval.reference_output diff -u llvm-test/SingleSource/UnitTests/Integer/constval.reference_output:1.2 llvm-test/SingleSource/UnitTests/Integer/constval.reference_output:1.3 --- llvm-test/SingleSource/UnitTests/Integer/constval.reference_output:1.2 Wed May 16 14:34:37 2007 +++ llvm-test/SingleSource/UnitTests/Integer/constval.reference_output Thu May 17 12:29:58 2007 @@ -3,4 +3,5 @@ z = 0000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 a = 000001010011100101110111000001010011100101110111000001010011100101110 b = 10101010101010101010101010101010101010101010101010101010101010101010 +c = 1111111111111111111111111111111111111110001011111001101101101111110001010001111110010010000001100010001110101001101000011101000000110100100110001110000001111010100101110 exit 0 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits