Commit 705412b0 by Aldy Hernandez Committed by Aldy Hernandez

simd-1.C: New.

2003-04-01  Aldy Hernandez  <aldyh@redhat.com>

        * g++.dg/eh/simd-1.C: New.

        * g++.dg/eh/simd-2.C: New.

From-SVN: r65138
parent 7d4444ea
2003-04-01 Aldy Hernandez <aldyh@redhat.com>
* g++.dg/eh/simd-1.C: New.
* g++.dg/eh/simd-2.C: New.
2003-03-01 Aldy Hernandez <aldyh@redhat.com>
* testsuite/gcc.c-torture/execute/simd-3.c: New.
* gcc.c-torture/execute/simd-3.c: New.
2003-03-31 Mark Mitchell <mark@codesourcery.com>
......
// Test EH when V2SI SIMD registers are involved.
// Contributed by Aldy Hernandez (aldy@quesejoda.com).
// { dg-options "-O" }
// { dg-do run }
typedef int __attribute__((mode(V2SI))) vecint;
vecint vecfunc (vecint beachbum)
{
return vecint;
}
void f3 (void)
{
/* Force a use of a V2SI register if available. On the PPC/E500,
this will cause the compiler to save the registers in this
function in 64-bits. */
vecint foobar = (vecint) {0, 0};
foobar = vecfunc (foobar);
throw int();
}
void f2 (void)
{
vecint foobar = (vecint) {0, 0};
foobar = vecfunc (foobar);
f3 ();
}
void f1 (void)
{
int i;
try
{
f2 ();
}
catch (int)
{
i = 9;
}
}
int main ()
{
f1 ();
return 0;
}
// Test EH when V4SI SIMD registers are involved.
// Contributed by Aldy Hernandez (aldy@quesejoda.com).
// { dg-options "-O" }
// { dg-do run }
typedef int __attribute__((mode(V4SI))) vecint;
vecint vecfunc (vecint beachbum)
{
return vecint;
}
void f3 (void)
{
vecint foobar = (vecint) {0, 0};
foobar = vecfunc (foobar);
throw int();
}
void f2 (void)
{
vecint foobar = (vecint) {0, 0};
foobar = vecfunc (foobar);
f3 ();
}
void f1 (void)
{
int i;
try
{
f2 ();
}
catch (int)
{
i = 9;
}
}
int main ()
{
f1 ();
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