Commit 16191a64 by Dale Johannesen Committed by Dale Johannesen

20050603-1.c: Move to gcc.dg.

2005-06-05  Dale Johannesen  <dalej@apple.com>

	* gcc.c-torture/execute/20050603-1.c:  Move to gcc.dg.
	* gcc.c-torture/execute/20050603-2.c:  Ditto.

From-SVN: r100623
parent b4cbcd1a
2005-06-05 Dale Johannesen <dalej@apple.com>
* gcc.c-torture/execute/20050603-1.c: Move to gcc.dg.
* gcc.c-torture/execute/20050603-2.c: Ditto.
2005-06-05 Dorit Nuzman <dorit@il.ibm.com>
* gcc.dg/vect/vect-62: Check that second loop is not vectorized.
......
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-options "-O2" } */
#include <locale.h>
#include <stdlib.h>
register int *testreg asm ("r29");
int x;
int y;
int *ext_func (int *p) { return p; }
void test_reg_save_restore (int*) __attribute__((noinline));
void
test_reg_save_restore (int *p)
{
setlocale (LC_ALL, "C");
testreg = ext_func(p);
}
main() {
testreg = &x;
test_reg_save_restore (&y);
if (testreg != &y)
abort ();
return 0;
}
/* { dg-do run } */
/* { dg-options "-O2" } */
#include <stdlib.h>
struct s {
unsigned short f: 16;
unsigned short y: 8;
unsigned short g: 2;
unsigned int x;
};
void set (struct s*, int) __attribute__((noinline));
void set (struct s* p, int flags) {
p->g = flags << 1;
}
main() {
struct s foo = {0 , 0, 3, 0};
set (&foo, -1);
if (foo.g != 2)
abort();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment