Commit 894c144c by H.J. Lu Committed by H.J. Lu

i386: Rewrite indirect_branch_operand logic

	* config/i386/predicates.md (indirect_branch_operand): Rewrite
	ix86_indirect_branch_register logic.

From-SVN: r256715
parent 4a5a0497
2018-01-15 H.J. Lu <hongjiu.lu@intel.com> 2018-01-15 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/predicates.md (indirect_branch_operand): Rewrite
ix86_indirect_branch_register logic.
2018-01-15 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/constraints.md (Bs): Update * config/i386/constraints.md (Bs): Update
ix86_indirect_branch_register check. Don't check ix86_indirect_branch_register check. Don't check
ix86_indirect_branch_register with GOT_memory_operand. ix86_indirect_branch_register with GOT_memory_operand.
......
...@@ -665,8 +665,8 @@ ...@@ -665,8 +665,8 @@
;; Test for a valid operand for indirect branch. ;; Test for a valid operand for indirect branch.
(define_predicate "indirect_branch_operand" (define_predicate "indirect_branch_operand"
(ior (match_operand 0 "register_operand") (ior (match_operand 0 "register_operand")
(and (not (match_test "TARGET_X32 (and (not (match_test "ix86_indirect_branch_register"))
|| ix86_indirect_branch_register")) (not (match_test "TARGET_X32"))
(match_operand 0 "memory_operand")))) (match_operand 0 "memory_operand"))))
;; Return true if OP is a memory operands that can be used in sibcalls. ;; Return true if OP is a memory operands that can be used in sibcalls.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment