aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2011-08-22 18:00:33 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2011-08-22 18:00:33 +0000
commit60418b5d25588fdffcb14d410a012704b83f01a2 (patch)
tree5b24d7e91d56780c67d8d357e2f8674d26b0d57a /gcc/config
parente3aa9ebaf76b9076897762e8ec28e7542338c3f9 (diff)
downloadgcc-60418b5d25588fdffcb14d410a012704b83f01a2.zip
gcc-60418b5d25588fdffcb14d410a012704b83f01a2.tar.gz
gcc-60418b5d25588fdffcb14d410a012704b83f01a2.tar.bz2
c6x.md (indirect_jump_shadow): Tweak representation to make computed_jump_p return true.
* config/c6x/c6x.md (indirect_jump_shadow): Tweak representation to make computed_jump_p return true. From-SVN: r177968
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/c6x/c6x.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/c6x/c6x.md b/gcc/config/c6x/c6x.md
index 7935a81..e8e15b2 100644
--- a/gcc/config/c6x/c6x.md
+++ b/gcc/config/c6x/c6x.md
@@ -1427,8 +1427,10 @@
(set_attr "cross" "y,n")
(set_attr "dest_regfile" "b")])
+;; computed_jump_p returns true if it finds a constant; so use one in the
+;; unspec.
(define_insn "indirect_jump_shadow"
- [(set (pc) (unspec [(pc)] UNSPEC_JUMP_SHADOW))]
+ [(set (pc) (unspec [(const_int 1)] UNSPEC_JUMP_SHADOW))]
""
";; indirect jump occurs"
[(set_attr "type" "shadow")])