diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-ppc.c | 6 | ||||
-rw-r--r-- | gas/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/booke.d | 10 |
4 files changed, 18 insertions, 8 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 3fbbd2c..ea2e1d2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2001-11-15 Alan Modra <amodra@bigpond.net.au> + + * config/tc-ppc.c (ppc_insert_operand): Pass (ppc_cpu | ppc_size) + to operand->insert. + (md_assemble): Likewise. + 2001-11-12 Nick Clifton <nickc@cambridge.redhat.com> * frags.c (frag_grow): Use frag_make_room() to grow the diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index d0e8db8..2e2e684 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -1304,7 +1304,7 @@ ppc_insert_operand (insn, operand, val, file, line) const char *errmsg; errmsg = NULL; - insn = (*operand->insert) (insn, (long) val, &errmsg); + insn = (*operand->insert) (insn, (long) val, ppc_cpu | ppc_size, &errmsg); if (errmsg != (const char *) NULL) as_bad_where (file, line, errmsg); } @@ -1942,7 +1942,7 @@ md_assemble (str) from the input. */ if ((operand->flags & PPC_OPERAND_FAKE) != 0) { - insn = (*operand->insert) (insn, 0L, &errmsg); + insn = (*operand->insert) (insn, 0L, ppc_cpu | ppc_size, &errmsg); if (errmsg != (const char *) NULL) as_bad (errmsg); continue; @@ -1955,7 +1955,7 @@ md_assemble (str) { if (operand->insert) { - insn = (*operand->insert) (insn, 0L, &errmsg); + insn = (*operand->insert) (insn, 0L, ppc_cpu | ppc_size, &errmsg); if (errmsg != (const char *) NULL) as_bad (errmsg); } diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index a78da36..2d6db40 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-11-15 Alan Modra <amodra@bigpond.net.au> + + * gas/ppc/booke.d: Modify reloc and target matches for powerpc64. + 2001-11-11 Timothy Wall <twall@alum.mit.edu> * gas/tic54x/sections.[sd]: Check for named, initialized sections diff --git a/gas/testsuite/gas/ppc/booke.d b/gas/testsuite/gas/ppc/booke.d index 37b8ebe..90e34e9 100644 --- a/gas/testsuite/gas/ppc/booke.d +++ b/gas/testsuite/gas/ppc/booke.d @@ -2,7 +2,7 @@ #objdump: -Dr -Mbooke #name: BookE tests -.*: +file format elf32-powerpc +.*: +file format elf(32)?(64)?-powerpc Disassembly of section \.text: @@ -10,9 +10,9 @@ Disassembly of section \.text: 0: 24 25 00 30 bce 1,4\*cr1\+gt,30 <branch_target_1> 4: 24 46 00 3d bcel 2,4\*cr1\+eq,40 <branch_target_2> 8: 24 67 00 02 bcea 3,4\*cr1\+so,0 <start> - 8: R_PPC_ADDR14 branch_target_3 + 8: R_PPC(64)?_ADDR14 branch_target_3 c: 24 88 00 03 bcela 4,4\*cr2,0 <start> - c: R_PPC_ADDR14 branch_target_4 + c: R_PPC(64)?_ADDR14 branch_target_4 10: 4c a9 00 22 bclre 5,4\*cr2\+gt 14: 4c aa 00 23 bclrel 5,4\*cr2\+eq 18: 4d 0b 04 22 bcctre 8,4\*cr2\+so @@ -20,9 +20,9 @@ Disassembly of section \.text: 20: 58 00 00 74 be 94 <branch_target_5> 24: 58 00 00 89 bel ac <branch_target_6> 28: 58 00 00 02 bea 0 <start> - 28: R_PPC_ADDR24 branch_target_7 + 28: R_PPC(64)?_ADDR24 branch_target_7 2c: 58 00 00 03 bela 0 <start> - 2c: R_PPC_ADDR24 branch_target_8 + 2c: R_PPC(64)?_ADDR24 branch_target_8 0+0000030 <branch_target_1>: 30: e9 09 00 80 lbze r8,8\(r9\) |