OSDN Git Service

* gcc.c-torture/compile/20021230-1.c: New test.
authordrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Dec 2002 20:33:42 +0000 (20:33 +0000)
committerdrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Dec 2002 20:33:42 +0000 (20:33 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60645 138bc75d-0d04-0410-961f-82ee72b054a4

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

index cae2b90..b82d4f3 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;
+}