From: Jakub Jelinek Date: Wed, 25 Nov 2020 16:25:36 +0000 (+0100) Subject: testsuite: Rename test to avoid typo in its name [PR95862] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b13dacdfb315675803982ad5a3098f7b55e6357a;p=gcc.git testsuite: Rename test to avoid typo in its name [PR95862] 2020-11-25 Jakub Jelinek PR rtl-optimization/95862 * gcc.dg/builtin-artih-overflow-5.c: Renamed to ... * gcc.dg/builtin-arith-overflow-5.c: ... this. --- diff --git a/gcc/testsuite/gcc.dg/builtin-arith-overflow-5.c b/gcc/testsuite/gcc.dg/builtin-arith-overflow-5.c new file mode 100644 index 00000000000..b43fd1859d4 --- /dev/null +++ b/gcc/testsuite/gcc.dg/builtin-arith-overflow-5.c @@ -0,0 +1,87 @@ +/* PR rtl-optimization/95862 */ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ + +int +f1 (int a, int b) +{ + unsigned long long c; + return __builtin_mul_overflow (a, b, &c); +} + +int +f2 (int a, unsigned b) +{ + unsigned long long c; + return __builtin_mul_overflow (a, b, &c); +} + +int +f3 (unsigned a, unsigned b) +{ + long long c; + return __builtin_mul_overflow (a, b, &c); +} + +int +f4 (int a, unsigned b) +{ + long long c; + return __builtin_mul_overflow (a, b, &c); +} + +short +f5 (short a, short b) +{ + unsigned c; + return __builtin_mul_overflow (a, b, &c); +} + +short +f6 (short a, unsigned short b) +{ + unsigned c; + return __builtin_mul_overflow (a, b, &c); +} + +short +f7 (unsigned short a, unsigned short b) +{ + int c; + return __builtin_mul_overflow (a, b, &c); +} + +short +f8 (short a, unsigned short b) +{ + int c; + return __builtin_mul_overflow (a, b, &c); +} + +signed char +f9 (signed char a, signed char b) +{ + unsigned short c; + return __builtin_mul_overflow (a, b, &c); +} + +signed char +f10 (signed char a, unsigned char b) +{ + unsigned short c; + return __builtin_mul_overflow (a, b, &c); +} + +signed char +f11 (unsigned char a, unsigned char b) +{ + short c; + return __builtin_mul_overflow (a, b, &c); +} + +signed char +f12 (signed char a, unsigned char b) +{ + short c; + return __builtin_mul_overflow (a, b, &c); +} diff --git a/gcc/testsuite/gcc.dg/builtin-artih-overflow-5.c b/gcc/testsuite/gcc.dg/builtin-artih-overflow-5.c deleted file mode 100644 index b43fd1859d4..00000000000 --- a/gcc/testsuite/gcc.dg/builtin-artih-overflow-5.c +++ /dev/null @@ -1,87 +0,0 @@ -/* PR rtl-optimization/95862 */ -/* { dg-do compile } */ -/* { dg-options "-O2" } */ - -int -f1 (int a, int b) -{ - unsigned long long c; - return __builtin_mul_overflow (a, b, &c); -} - -int -f2 (int a, unsigned b) -{ - unsigned long long c; - return __builtin_mul_overflow (a, b, &c); -} - -int -f3 (unsigned a, unsigned b) -{ - long long c; - return __builtin_mul_overflow (a, b, &c); -} - -int -f4 (int a, unsigned b) -{ - long long c; - return __builtin_mul_overflow (a, b, &c); -} - -short -f5 (short a, short b) -{ - unsigned c; - return __builtin_mul_overflow (a, b, &c); -} - -short -f6 (short a, unsigned short b) -{ - unsigned c; - return __builtin_mul_overflow (a, b, &c); -} - -short -f7 (unsigned short a, unsigned short b) -{ - int c; - return __builtin_mul_overflow (a, b, &c); -} - -short -f8 (short a, unsigned short b) -{ - int c; - return __builtin_mul_overflow (a, b, &c); -} - -signed char -f9 (signed char a, signed char b) -{ - unsigned short c; - return __builtin_mul_overflow (a, b, &c); -} - -signed char -f10 (signed char a, unsigned char b) -{ - unsigned short c; - return __builtin_mul_overflow (a, b, &c); -} - -signed char -f11 (unsigned char a, unsigned char b) -{ - short c; - return __builtin_mul_overflow (a, b, &c); -} - -signed char -f12 (signed char a, unsigned char b) -{ - short c; - return __builtin_mul_overflow (a, b, &c); -}