+2011-12-21 Uros Bizjak <ubizjak@gmail.com>
+
+ * config/i386/i386.c (ix86_option_override_internal): Enable flag_ree
+ also for 32bit targets.
+
2011-12-21 Richard Henderson <rth@redhat.com>
PR target/51552
#define USE_X86_64_FRAME_POINTER 0
#endif
+ /* Enable redundant extension instructions removal at -O2 and higher. */
+ if (optimize >= 2 && !global_options_set.x_flag_ree)
+ flag_ree = 1;
+
/* Set the default values for switches whose default depends on TARGET_64BIT
in case they weren't overwritten by command line options. */
if (TARGET_64BIT)
{
- if (optimize > 1 && !global_options_set.x_flag_ree)
- flag_ree = 1;
if (optimize >= 1 && !global_options_set.x_flag_omit_frame_pointer)
flag_omit_frame_pointer = !USE_X86_64_FRAME_POINTER;
if (flag_asynchronous_unwind_tables == 2)
+2011-12-21 Uros Bizjak <ubizjak@gmail.com>
+
+ * gcc.dg/pr50038.c: Move to ...
+ * gcc.target/i386/pr50038.c: ... here. Test on all targets.
+
2011-12-21 Jason Merrill <jason@redhat.com>
PR c++/51611
+++ /dev/null
-/* PR target/50038 */
-/* { dg-do compile { target x86_64-*-* } } */
-/* { dg-options "-O2" } */
-
-void pr50038(int len, unsigned char *in, unsigned char *out)
-{
- int i;
- unsigned char xr, xg;
- unsigned char xy=0;
- for (i = 0; i < len; i++)
- {
- xr = *in++;
- xg = *in++;
- xy = (unsigned char) ((19595*xr + 38470*xg) >> 16);
-
- *out++ = xy;
- }
-}
-
-/* { dg-final { scan-assembler-times "movzbl" 2 } } */
--- /dev/null
+/* PR target/50038 */
+/* { dg-options "-O2" } */
+
+void
+test (int len, unsigned char *in, unsigned char *out)
+{
+ int i;
+ unsigned char xr, xg;
+ unsigned char xy=0;
+ for (i = 0; i < len; i++)
+ {
+ xr = *in++;
+ xg = *in++;
+ xy = (unsigned char) ((19595 * xr + 38470 * xg) >> 16);
+
+ *out++ = xy;
+ }
+}
+
+/* { dg-final { scan-assembler-times "movzbl" 2 } } */