From b0e0b1f3750dfdd1683daf885f0b2b65dfcd3d05 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 30 Dec 2002 20:33:42 +0000 Subject: * gcc.c-torture/compile/20021230-1.c: New test. From-SVN: r60645 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.c-torture/compile/20021230-1.c | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/20021230-1.c (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cae2b90..b82d4f3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-12-30 Daniel Jacobowitz + + * gcc.c-torture/compile/20021230-1.c: New test. + 2002-12-30 Nathan Sidwell * g++.dg/inherit/covariant5.C: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/20021230-1.c b/gcc/testsuite/gcc.c-torture/compile/20021230-1.c new file mode 100644 index 0000000..45ab51f --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20021230-1.c @@ -0,0 +1,8 @@ +/* SH has special handling for combined and/shift sequences. Make + sure that it behaves properly when one input is in the MACL register. */ +int r, t; + +static void initRGB() +{ + t = ((r*255/3) & 0xff) << 16; +} -- cgit v1.1