arm.md (enabled): Test the value of arch_enabled rather than just using it.

2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

	* config/arm/arm.md (enabled): Test the value of arch_enabled
        rather than just using it.

From-SVN: r163585
This commit is contained in:
Ramana Radhakrishnan 2010-08-27 14:22:41 +00:00 committed by Ramana Radhakrishnan
parent e240f0f4cc
commit da787decc6
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/arm/arm.md (enabled): Test the value of arch_enabled
rather than just using it.
2010-08-27 Olivier Hainque <hainque@adacore.com>
Eric Botcazou <ebotcazou@adacore.com>

View File

@ -234,10 +234,12 @@
(const_string "yes"))
; Enable all alternatives that are both arch_enabled and insn_enabled.
(define_attr "enabled" "no,yes"
(if_then_else (eq_attr "insn_enabled" "yes")
(attr "arch_enabled")
(const_string "no")))
(define_attr "enabled" "no,yes"
(if_then_else (eq_attr "insn_enabled" "yes")
(if_then_else (eq_attr "arch_enabled" "yes")
(const_string "yes")
(const_string "no"))
(const_string "no")))
; POOL_RANGE is how far away from a constant pool entry that this insn
; can be placed. If the distance is zero, then this insn will never