pa.md (pic_load_label): Fix test for using just an ldo rather than an addil;ldo seque...
authorJeff Law <law@gcc.gnu.org>
Mon, 6 Jan 1997 07:01:49 +0000 (00:01 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 6 Jan 1997 07:01:49 +0000 (00:01 -0700)
        * pa/pa.md (pic_load_label): Fix test for using just an
        ldo rather than an addil;ldo sequence to load the label's
        address.

From-SVN: r13384

gcc/config/pa/pa.md

index ed7b654030c61aac326835b94802c22f3f3dc3c5..9c4b814bec4fb2fffac470650921a9a946328b08 100644 (file)
@@ -1,5 +1,6 @@
 ;;- Machine description for HP PA-RISC architecture for GNU C compiler
-;;   Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
+;;   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997
+;;   Free Software Foundation, Inc.
 ;;   Contributed by the Center for Software Science at the University
 ;;   of Utah.
 
   if (GET_CODE (operands[1]) == LABEL_REF
       && insn_addresses
       && abs (insn_addresses[INSN_UID (XEXP (operands[1], 0))]
-               - insn_current_address) < 8100)
+               - insn_addresses[INSN_UID (insn)]) < 8100)
     {
       /* Prefixing with R% here is wrong, it extracts just 11 bits and is
         always non-negative.  */