[compiler-rt] r196612 - Fix integer tests on platforms where uint64_t is 'unsigned long long'.

Will Dietz wdietz2 at illinois.edu
Fri Dec 6 13:49:18 PST 2013


Author: wdietz2
Date: Fri Dec  6 15:49:18 2013
New Revision: 196612

URL: http://llvm.org/viewvc/llvm-project?rev=196612&view=rev
Log:
Fix integer tests on platforms where uint64_t is 'unsigned long long'.

Modified:
    compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/no-recover.cpp
    compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp
    compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/usub-overflow.cpp

Modified: compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/no-recover.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/no-recover.cpp?rev=196612&r1=196611&r2=196612&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/no-recover.cpp (original)
+++ compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/no-recover.cpp Fri Dec  6 15:49:18 2013
@@ -17,6 +17,6 @@ int main() {
   // ABORT: no-recover.cpp:[[@LINE-2]]:5: runtime error: unsigned integer overflow: 2271560481 + 3989547399 cannot be represented in type 'unsigned int'
 
   (void)(uint64_t(10000000000000000000ull) + uint64_t(9000000000000000000ull));
-  // RECOVER: 10000000000000000000 + 9000000000000000000 cannot be represented in type 'unsigned long'
+  // RECOVER: 10000000000000000000 + 9000000000000000000 cannot be represented in type 'unsigned {{long( long)?}}'
   // ABORT-NOT: runtime error
 }

Modified: compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp?rev=196612&r1=196611&r2=196612&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp (original)
+++ compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp Fri Dec  6 15:49:18 2013
@@ -18,7 +18,7 @@ int main() {
 
 #ifdef ADD_I64
   (void)(uint64_t(10000000000000000000ull) + uint64_t(9000000000000000000ull));
-  // CHECK-ADD_I64: 10000000000000000000 + 9000000000000000000 cannot be represented in type 'unsigned long'
+  // CHECK-ADD_I64: 10000000000000000000 + 9000000000000000000 cannot be represented in type 'unsigned {{long( long)?}}'
 #endif
 
 #ifdef ADD_I128

Modified: compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/usub-overflow.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/usub-overflow.cpp?rev=196612&r1=196611&r2=196612&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/usub-overflow.cpp (original)
+++ compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/Integer/usub-overflow.cpp Fri Dec  6 15:49:18 2013
@@ -17,7 +17,7 @@ int main() {
 
 #ifdef SUB_I64
   (void)(uint64_t(8000000000000000000ll) - uint64_t(9000000000000000000ll));
-  // CHECK-SUB_I64: 8000000000000000000 - 9000000000000000000 cannot be represented in type 'unsigned long'
+  // CHECK-SUB_I64: 8000000000000000000 - 9000000000000000000 cannot be represented in type 'unsigned {{long( long)?}}'
 #endif
 
 #ifdef SUB_I128





More information about the llvm-commits mailing list