aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/epiphany/epiphany-sched.md
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2012-11-29 01:46:47 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2012-11-29 01:46:47 +0000
commit447a7d2493aa5ad0f27b74cef8cda37e1e667aca (patch)
tree871ea82376a663fa1dd3614ba691ab134cfc88d9 /gcc/config/epiphany/epiphany-sched.md
parente7287433d85b975baea75bbad5d1482cfd8fb3b3 (diff)
downloadgcc-447a7d2493aa5ad0f27b74cef8cda37e1e667aca.zip
gcc-447a7d2493aa5ad0f27b74cef8cda37e1e667aca.tar.gz
gcc-447a7d2493aa5ad0f27b74cef8cda37e1e667aca.tar.bz2
predicates.md (addsub_operator): New predicate.
* config/epiphany/predicates.md (addsub_operator): New predicate. * config/epiphany/epiphany-sched.md (sched_use_fpu): New attribute. * config/epiphany/epiphany.md (isub_i+1): New peephole2. * config/epiphany/epiphany.h (get_attr_sched_use_fpu): Declare. From-SVN: r193915
Diffstat (limited to 'gcc/config/epiphany/epiphany-sched.md')
-rw-r--r--gcc/config/epiphany/epiphany-sched.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/epiphany/epiphany-sched.md b/gcc/config/epiphany/epiphany-sched.md
index 4d425bb..5e1519f 100644
--- a/gcc/config/epiphany/epiphany-sched.md
+++ b/gcc/config/epiphany/epiphany-sched.md
@@ -136,3 +136,10 @@
(and (eq_attr "pipe_model" "epiphany")
(eq_attr "type" "v2fp"))
"issue,issue+F0,F0")
+
+; A boolean attribute for use by peephole2 patterns that try to figure out
+; if we overcommitted the FPU.
+; This is notionally a numeric attribute to avoid dependency problems.
+(define_attr "sched_use_fpu" ""
+ (cond [(eq_attr "type" "fp,fp_int,v2fp") (const_int 1)]
+ (const_int 0)))