summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000
diff options
context:
space:
mode:
authordalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-31 18:11:19 +0000
committerdalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-31 18:11:19 +0000
commit2a14843270145269e2463cb17bfc0cb1614f21e8 (patch)
tree9a7c2c302f84f0154a262c14d99ab877007411e6 /gcc/config/rs6000
parent8e1ca3f6b4fe6b99d3c044b6bcf10484b9c8b2d8 (diff)
downloadgcc-2a14843270145269e2463cb17bfc0cb1614f21e8.tar.gz
2005-01-31 Dale Johannesen <dalej@apple.com>
* config/rs6000/darwin.md (movsf_low_di): Make work. (movdf_low_di): Make work. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94487 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r--gcc/config/rs6000/darwin.md30
1 files changed, 4 insertions, 26 deletions
diff --git a/gcc/config/rs6000/darwin.md b/gcc/config/rs6000/darwin.md
index d77555d8994..a0499c5c7aa 100644
--- a/gcc/config/rs6000/darwin.md
+++ b/gcc/config/rs6000/darwin.md
@@ -1,5 +1,5 @@
/* Machine description patterns for PowerPC running Darwin (Mac OS X).
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005 Free Software Foundation, Inc.
Contributed by Apple Computer Inc.
This file is part of GCC.
@@ -82,35 +82,13 @@ Boston, MA 02111-1307, USA. */
case 0:
return \"lfd %0,lo16(%2)(%1)\";
case 1:
- {
- rtx operands2[4];
- operands2[0] = operands[0];
- operands2[1] = operands[1];
- operands2[2] = operands[2];
- if (TARGET_POWERPC64 && TARGET_32BIT)
- /* Note, old assemblers didn't support relocation here. */
- return \"ld %0,lo16(%2)(%1)\";
- else
- {
- operands2[3] = gen_rtx_REG (SImode, RS6000_PIC_OFFSET_TABLE_REGNUM);
- output_asm_insn (\"{l|ld} %0,lo16(%2)(%1)\", operands);
-#if TARGET_MACHO
- if (MACHO_DYNAMIC_NO_PIC_P)
- output_asm_insn (\"{liu|lis} %L0,ha16(%2+4)\", operands);
- else
- /* We cannot rely on ha16(low half)==ha16(high half), alas,
- although in practice it almost always is. */
- output_asm_insn (\"{cau|addis} %L0,%3,ha16(%2+4)\", operands2);
-#endif
- return (\"{l|lwz} %L0,lo16(%2+4)(%L0)\");
- }
- }
+ return \"ld %0,lo16(%2)(%1)\";
default:
abort();
}
}"
[(set_attr "type" "load")
- (set_attr "length" "4,12")])
+ (set_attr "length" "4,4")])
(define_insn "movdf_low_st_si"
[(set (mem:DF (lo_sum:SI (match_operand:SI 1 "gpc_reg_operand" "b")
@@ -148,7 +126,7 @@ Boston, MA 02111-1307, USA. */
"TARGET_MACHO && TARGET_HARD_FLOAT && TARGET_FPRS && TARGET_64BIT"
"@
lfs %0,lo16(%2)(%1)
- {l|ld} %0,lo16(%2)(%1)"
+ {l|lwz} %0,lo16(%2)(%1)"
[(set_attr "type" "load")
(set_attr "length" "4")])