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,9 +234,11 @@
(const_string "yes"))
; Enable all alternatives that are both arch_enabled and insn_enabled.
(define_attr "enabled" "no,yes"
(define_attr "enabled" "no,yes"
(if_then_else (eq_attr "insn_enabled" "yes")
(attr "arch_enabled")
(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