summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-20 06:54:52 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-20 06:54:52 +0000
commitece445c880638f39b3060f1a98364e99a88dc75a (patch)
tree3b4fc4f9a8b7cd419627994ceb2a9a76d6813d29
parentda9e65193f2e4406a3e8cf527010ed9a83245516 (diff)
downloadppe42-gcc-ece445c880638f39b3060f1a98364e99a88dc75a.tar.gz
ppe42-gcc-ece445c880638f39b3060f1a98364e99a88dc75a.zip
PR target/17565
* config/mips/mips.md (define_asm_attributes): Set can_delay to no. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87744 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.md3
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.target/mips/asm-1.c14
4 files changed, 25 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6f6582d3f1c..45f7fe7a9ed 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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>
* predict.c (estimate_probability): Remove unnecesary code.
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index fb50b3bdab2..b8239edf7b2 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -310,7 +310,8 @@
;; Describe a user's asm statement.
(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
;; from the same template.
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 199ae8e18e7..8548b4733e9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+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>
* gcc.dg/vect/vect-13.c: Now vectorized on ppc*.
diff --git a/gcc/testsuite/gcc.target/mips/asm-1.c b/gcc/testsuite/gcc.target/mips/asm-1.c
new file mode 100644
index 00000000000..1a64e8754fd
--- /dev/null
+++ b/gcc/testsuite/gcc.target/mips/asm-1.c
@@ -0,0 +1,14 @@
+/* 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;
+}
OpenPOWER on IntegriCloud