| 1 |
/* This does not work on h8300 due to the use of an asm |
| 2 |
statement to force a 'long long' (64-bits) to go in a register. */ |
| 3 |
/* { dg-do assemble } */ |
| 4 |
/* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && { ia32 && { ! nonpic } } } } */ |
| 5 |
/* { dg-skip-if "No 64-bit registers" { m32c-*-* } } */ |
| 6 |
/* { dg-skip-if "Not enough 64-bit registers" { pdp11-*-* } { "-O0" } { "" } } */ |
| 7 |
/* { dg-xfail-if "Inconsistent constraint on asm" { csky-*-* } { "-O0" } { "" } } */ |
| 8 |
/* { dg-xfail-if "Inconsistent constraint on asm" { bpf-*-* } { "-O0" } { "" } } */ |
| 9 |
/* { dg-xfail-if "" { h8300-*-* } } */ |
| 10 |
/* { dg-require-stack-size "99*4+16" } */ |
| 11 |
/* { dg-additional-options "-std=gnu89" } */ |
| 12 |
|
| 13 |
/* Copyright (C) 2000, 2003 Free Software Foundation */ |
| 14 |
__complex__ long long f () |
| 15 |
{ |
| 16 |
int i[99]; |
| 17 |
__complex__ long long v; |
| 18 |
|
| 19 |
v += f (); |
| 20 |
asm("": "+r" (v) : "r" (0), "r" (1)); |
| 21 |
v = 2; |
| 22 |
return v; |
| 23 |
g (&v); |
| 24 |
} |