Skip to content

Commit e24acca

Browse files
author
hjl
committed
i386: Rewrite indirect_branch_operand logic
* config/i386/predicates.md (indirect_branch_operand): Rewrite ix86_indirect_branch_register logic. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256715 138bc75d-0d04-0410-961f-82ee72b054a4
1 parent 208fd77 commit e24acca

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

gcc/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2018-01-15 H.J. Lu <[email protected]>
2+
3+
* config/i386/predicates.md (indirect_branch_operand): Rewrite
4+
ix86_indirect_branch_register logic.
5+
16
2018-01-15 H.J. Lu <[email protected]>
27

38
* config/i386/constraints.md (Bs): Update

gcc/config/i386/predicates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,8 @@
665665
;; Test for a valid operand for indirect branch.
666666
(define_predicate "indirect_branch_operand"
667667
(ior (match_operand 0 "register_operand")
668-
(and (not (match_test "TARGET_X32
669-
|| ix86_indirect_branch_register"))
668+
(and (not (match_test "ix86_indirect_branch_register"))
669+
(not (match_test "TARGET_X32"))
670670
(match_operand 0 "memory_operand"))))
671671

672672
;; Return true if OP is a memory operands that can be used in sibcalls.

0 commit comments

Comments
 (0)