Commit 073cbad3 by Richard Sandiford Committed by Richard Sandiford

re PR target/17565 ([3.3 only] asms in delay slots)

	PR target/17565
	* config/mips/mips.md (define_asm_attributes): Set can_delay to no.

From-SVN: r87744
parent 95c53c62
2004-09-20 Richard Sandiford <rsandifo@redhat.com>
PR target/17565
* config/mips/mips.md (define_asm_attributes): Set can_delay to no.
2004-09-20 Jan Hubicka <jh@suse.cz> 2004-09-20 Jan Hubicka <jh@suse.cz>
* predict.c (estimate_probability): Remove unnecesary code. * predict.c (estimate_probability): Remove unnecesary code.
......
...@@ -310,7 +310,8 @@ ...@@ -310,7 +310,8 @@
;; Describe a user's asm statement. ;; Describe a user's asm statement.
(define_asm_attributes (define_asm_attributes
[(set_attr "type" "multi")]) [(set_attr "type" "multi")
(set_attr "can_delay" "no")])
;; This mode macro allows 32-bit and 64-bit GPR patterns to be generated ;; This mode macro allows 32-bit and 64-bit GPR patterns to be generated
;; from the same template. ;; from the same template.
......
2004-09-20 Richard Sandiford <rsandifo@redhat.com>
* gcc.target/mips/asm-1.c: New test.
2004-09-19 Ira Rosen <irar@il.ibm.com> 2004-09-19 Ira Rosen <irar@il.ibm.com>
* gcc.dg/vect/vect-13.c: Now vectorized on ppc*. * gcc.dg/vect/vect-13.c: Now vectorized on ppc*.
......
/* PR target/17565. GCC used to put the asm into the delay slot
of the call. */
/* { dg-do assemble } */
/* { dg-options "-O" } */
int foo (int n)
{
register int k asm ("$16") = n;
if (k > 0)
{
bar ();
asm ("li %0,0x12345678" : "=r" (k));
}
return k;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment