Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gcc.c-torture/execute/20040409-2.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/gcc.c-torture/execute/20040409-2.c Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/testsuite/gcc.c-torture/execute/20040409-2.c Thu Oct 25 07:37:49 2018 +0900 @@ -22,41 +22,21 @@ return (x ^ 0x1234) ^ (unsigned int)INT_MIN; } -int test3(int x) -{ - return (x + INT_MIN) ^ 0x1234; -} - unsigned int test3u(unsigned int x) { return (x + (unsigned int)INT_MIN) ^ 0x1234; } -int test4(int x) -{ - return (x ^ 0x1234) + INT_MIN; -} - unsigned int test4u(unsigned int x) { return (x ^ 0x1234) + (unsigned int)INT_MIN; } -int test5(int x) -{ - return (x - INT_MIN) ^ 0x1234; -} - unsigned int test5u(unsigned int x) { return (x - (unsigned int)INT_MIN) ^ 0x1234; } -int test6(int x) -{ - return (x ^ 0x1234) - INT_MIN; -} - unsigned int test6u(unsigned int x) { return (x ^ 0x1234) - (unsigned int)INT_MIN; @@ -90,13 +70,6 @@ return (x ^ y) ^ z; } -int test9(int x) -{ - int y = INT_MIN; - int z = 0x1234; - return (x + y) ^ z; -} - unsigned int test9u(unsigned int x) { unsigned int y = (unsigned int)INT_MIN; @@ -104,13 +77,6 @@ return (x + y) ^ z; } -int test10(int x) -{ - int y = 0x1234; - int z = INT_MIN; - return (x ^ y) + z; -} - unsigned int test10u(unsigned int x) { unsigned int y = 0x1234; @@ -118,13 +84,6 @@ return (x ^ y) + z; } -int test11(int x) -{ - int y = INT_MIN; - int z = 0x1234; - return (x - y) ^ z; -} - unsigned int test11u(unsigned int x) { unsigned int y = (unsigned int)INT_MIN; @@ -132,13 +91,6 @@ return (x - y) ^ z; } -int test12(int x) -{ - int y = 0x1234; - int z = INT_MIN; - return (x ^ y) - z; -} - unsigned int test12u(unsigned int x) { unsigned int y = 0x1234; @@ -153,26 +105,10 @@ abort(); if (test2(a) != b) abort(); - if (test3(a) != b) - abort(); - if (test4(a) != b) - abort(); - if (test5(a) != b) - abort(); - if (test6(a) != b) - abort(); if (test7(a) != b) abort(); if (test8(a) != b) abort(); - if (test9(a) != b) - abort(); - if (test10(a) != b) - abort(); - if (test11(a) != b) - abort(); - if (test12(a) != b) - abort(); } void testu(unsigned int a, unsigned int b)