diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2024-10-03 13:14:52 +0200 |
---|---|---|
committer | Georg-Johann Lay <avr@gjlay.de> | 2024-10-04 10:15:48 +0200 |
commit | a0cc6941d8c8fa88441fdae1ffb35396a412ec6b (patch) | |
tree | c6c94c1481443b311b3f0dd0c9b41f012a97c968 | |
parent | 186be7f37aed3b141af6367e05d28c5bcb0d9330 (diff) | |
download | gcc-a0cc6941d8c8fa88441fdae1ffb35396a412ec6b.zip gcc-a0cc6941d8c8fa88441fdae1ffb35396a412ec6b.tar.gz gcc-a0cc6941d8c8fa88441fdae1ffb35396a412ec6b.tar.bz2 |
testsuite - Fix gcc.c-torture/execute/ieee/pr108540-1.c
PR testsuite/108540
gcc/testsuite/
* gcc.c-torture/execute/ieee/pr108540-1.c: Un-preprocess
__SIZE_TYPE__ and __INT64_TYPE__.
* gcc.c-torture/execute/ieee/pr108540-1.x: New file, requires double64.
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/ieee/pr108540-1.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/ieee/pr108540-1.x | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/pr108540-1.c b/gcc/testsuite/gcc.c-torture/execute/ieee/pr108540-1.c index ebd4c50..db09441 100644 --- a/gcc/testsuite/gcc.c-torture/execute/ieee/pr108540-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/pr108540-1.c @@ -1,7 +1,7 @@ /* PR tree-optimization/108540 */ __attribute__((noipa)) void -bar (const char *cp, unsigned long size, char sign, int dsgn) +bar (const char *cp, __SIZE_TYPE__ size, char sign, int dsgn) { if (__builtin_strcmp (cp, "ZERO") != 0 || size != 4 || sign != '-' || dsgn != 1) __builtin_abort (); @@ -11,7 +11,7 @@ __attribute__((noipa)) void foo (int x, int ch, double d) { const char *cp = ""; - unsigned long size = 0; + __SIZE_TYPE__ size = 0; char sign = '\0'; switch (x) { @@ -41,7 +41,7 @@ foo (int x, int ch, double d) sign = '\0'; if (ch == 'a' || ch == 'A') { - union U { long long l; double d; } u; + union U { __INT64_TYPE__ l; double d; } u; int dsgn; u.d = d; if (u.l < 0) diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/pr108540-1.x b/gcc/testsuite/gcc.c-torture/execute/ieee/pr108540-1.x new file mode 100644 index 0000000..06d93ef --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/pr108540-1.x @@ -0,0 +1,7 @@ +load_lib target-supports.exp + +if { ! [check_effective_target_double64] } { + return 1 +} + +return 0 |