Commit 1412e0b5 by Jakub Jelinek Committed by Jakub Jelinek

re PR target/19005 (Error: bad register name `%sil')

	PR target/19005
	* gcc.c-torture/execute/pr19005.c: New test.

From-SVN: r108246
parent 58080452
2005-12-08 Jakub Jelinek <jakub@redhat.com> 2005-12-08 Jakub Jelinek <jakub@redhat.com>
PR target/19005
* gcc.c-torture/execute/pr19005.c: New test.
PR target/17828 PR target/17828
* g++.old-deja/g++.other/comdat5.C: New test. * g++.old-deja/g++.other/comdat5.C: New test.
* g++.old-deja/g++.other/comdat5-aux.cc: New file. * g++.old-deja/g++.other/comdat5-aux.cc: New file.
/* PR target/19005 */
extern void abort (void);
int v, s;
void
bar (int a, int b)
{
unsigned char x = v;
if (!s)
{
if (a != x || b != (unsigned char) (x + 1))
abort ();
}
else if (a != (unsigned char) (x + 1) || b != x)
abort ();
s ^= 1;
}
int
foo (int x)
{
unsigned char a = x, b = x + 1;
bar (a, b);
a ^= b; b ^= a; a ^= b;
bar (a, b);
return 0;
}
int
main (void)
{
for (v = -10; v < 266; v++)
foo (v);
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