Skip to content
Snippets Groups Projects
Commit a0cc6941 authored by Georg-Johann Lay's avatar Georg-Johann Lay
Browse files

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.
parent 186be7f3
No related branches found
No related tags found
No related merge requests found
/* 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)
......
load_lib target-supports.exp
if { ! [check_effective_target_double64] } {
return 1
}
return 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment