URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [torture/] [pr42834.c] - Rev 687
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do run } */ void __attribute__((noinline,noclone)) foo(int *p, float *q) { __asm__ volatile ("" : : : "memory"); } int main() { if (sizeof (int) == sizeof (float)) { int i; float f; int *p; /* Prevent i and f from being rewritten into SSA form. */ foo (&i, &f); i = 0; f = 1.0; p = (int *)&f; __builtin_memcpy (&i, p, 4); if (*(float *)&i != 1.0) __builtin_abort (); } return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log