* arm.md (pic_load_addr): Add constraints to operand 1.

From-SVN: r30170
This commit is contained in:
Richard Earnshaw 1999-10-25 21:11:18 +00:00
parent 2ca129355b
commit f12c5ef37a
2 changed files with 16 additions and 7 deletions

View File

@ -1,6 +1,11 @@
Mon Oct 25 22:08:35 1999 Richard Earnshaw (rearnsha@arm.com)
* arm.md (pic_load_addr): Add constraints to operand 1.
1999-10-25 Bruce Korb <autogen@linuxbox.com>
* fixinc/genfixes: Provide a means for specifying -D options to AutoGen
* fixinc/genfixes: Provide a means for specifying -D options to
AutoGen
Mon Oct 25 00:42:35 1999 Jeffrey A Law (law@cygnus.com)

View File

@ -2858,16 +2858,20 @@
&& GET_CODE (XEXP (XEXP (operands[1], 0), 1)) == CONST_INT))"
"adr%?\\t%0, %a1")
/* When generating pic, we need to load the symbol offset into a register.
So that the optimizer does not confuse this with a normal symbol load
we use an unspec. The offset will be loaded from a constant pool entry,
since that is the only type of relocation we can use. */
;; When generating pic, we need to load the symbol offset into a register.
;; So that the optimizer does not confuse this with a normal symbol load
;; we use an unspec. The offset will be loaded from a constant pool entry,
;; since that is the only type of relocation we can use.
;; The rather odd constraints on the following are to force reload to leave
;; the insn alone, and to force the minipool generation pass to then move
;; the GOT symbol to memory.
(define_insn "pic_load_addr"
[(set (match_operand:SI 0 "s_register_operand" "=r")
(unspec:SI [(match_operand 1 "" "")] 3))]
(unspec:SI [(match_operand:SI 1 "" "mX")] 3))]
"flag_pic"
"ldr%?\\t%0, %a1"
"ldr%?\\t%0, %1"
[(set_attr "type" "load")
(set_attr "pool_range" "4096")])