* gcc.c-torture/compile/20021230-1.c: New test.
authorDaniel Jacobowitz <drow@mvista.com>
Mon, 30 Dec 2002 20:33:42 +0000 (20:33 +0000)
committerDaniel Jacobowitz <drow@gcc.gnu.org>
Mon, 30 Dec 2002 20:33:42 +0000 (20:33 +0000)
From-SVN: r60645

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20021230-1.c [new file with mode: 0644]

index cae2b90e786e6dc54313386cff094ca8ff709f65..b82d4f3eb2d149caf59d7410533443f9dbb3001f 100644 (file)
@@ -1,3 +1,7 @@
+2002-12-30  Daniel Jacobowitz  <drow@mvista.com>
+
+       * gcc.c-torture/compile/20021230-1.c: New test.
+
 2002-12-30  Nathan Sidwell  <nathan@codesourcery.com>
 
        * 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 (file)
index 0000000..45ab51f
--- /dev/null
@@ -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;
+}