+2001-04-25 Jakub Jelinek <jakub@redhat.com>
+
+ * emit-rtl.c (subreg_hard_regno): Only do HARD_REGNO_MODE_OK check
+ if check_mode is non-zero.
+
2001-04-25 Jakub Jelinek <jakub@redhat.com>
* config/i386/i386.c (ix86_expand_int_movcc): If overlap between
base_regno = REGNO (reg);
if (base_regno >= FIRST_PSEUDO_REGISTER)
abort ();
- if (! HARD_REGNO_MODE_OK (base_regno, GET_MODE (reg)))
+ if (check_mode && ! HARD_REGNO_MODE_OK (base_regno, GET_MODE (reg)))
abort ();
/* Catch non-congruent offsets too. */
+2001-04-25 Jakub Jelinek <jakub@redhat.com>
+
+ * gcc.dg/20010423-1.c: New test.
+
2001-04-25 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/execute/20010422-1.c: New test.
--- /dev/null
+/* { dg-do compile { target ia64-*-* } } */
+/* { dg-options "-O2" } */
+
+int __sync_fetch_and_add_si (int *, int);
+
+inline unsigned int
+bar (volatile unsigned int *mem, unsigned int val)
+{
+ return __sync_fetch_and_add_si((int *)mem, (int)val);
+}
+
+volatile unsigned int x;
+
+void foo (unsigned short *a)
+{
+ *a = bar (&x, 1) + 1;
+}