1 /* tc-a29k.c -- Assemble for the AMD 29000.
2 Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
6 GAS is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GAS is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GAS; see the file COPYING. If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20 /* John Gilmore has reorganized this module somewhat, to make it easier
21 to convert it to new machines' assemblers as desired. There was too
22 much bloody rewriting required before. There still probably is. */
27 #include "opcode/a29k.h"
29 /* Make it easier to clone this machine desc into another one. */
30 #define machine_opcode a29k_opcode
31 #define machine_opcodes a29k_opcodes
32 #define machine_ip a29k_ip
33 #define machine_it a29k_it
35 const relax_typeS md_relax_table[] = { 0 };
37 #define IMMEDIATE_BIT 0x01000000 /* Turns RB into Immediate */
38 #define ABSOLUTE_BIT 0x01000000 /* Turns PC-relative to Absolute */
39 #define CE_BIT 0x00800000 /* Coprocessor enable in LOAD */
40 #define UI_BIT 0x00000080 /* Unsigned integer in CONVERT */
42 /* handle of the OPCODE hash table */
43 static struct hash_control *op_hash = NULL;
51 int reloc_offset; /* Offset of reloc within insn */
60 /* static int getExpression(char *str); */
61 static void machine_ip(char *str);
62 /* static void print_insn(struct machine_it *insn); */
63 static void s_data1(void);
64 static void s_use(void);
66 #else /* not __STDC__ */
68 /* static int getExpression(); */
69 static void machine_ip();
70 /* static void print_insn(); */
71 static void s_data1();
74 #endif /* not __STDC__ */
78 { "align", s_align_bytes, 4 },
79 { "block", s_space, 0 },
80 { "cputype", s_ignore, 0 }, /* CPU as 29000 or 29050 */
81 { "reg", s_lsym, 0 }, /* Register equate, same as equ */
82 { "space", s_ignore, 0 }, /* Listing control */
83 { "sect", s_ignore, 0 }, /* Creation of coff sections */
85 /* We can do this right with coff */
92 int md_short_jump_size = 4;
93 int md_long_jump_size = 4;
94 #if defined(BFD_HEADERS)
96 int md_reloc_size = RELSZ; /* Coff headers */
98 int md_reloc_size = 12; /* something else headers */
101 int md_reloc_size = 12; /* Not bfdized*/
104 /* This array holds the chars that always start a comment. If the
105 pre-processor is disabled, these aren't very useful */
106 const char comment_chars[] = ";";
108 /* This array holds the chars that only start a comment at the beginning of
109 a line. If the line seems to have the form '# 123 filename'
110 .line and .file directives will appear in the pre-processed output */
111 /* Note that input_file.c hand checks for '#' at the beginning of the
112 first line of the input file. This is because the compiler outputs
113 #NO_APP at the beginning of its output. */
114 /* Also note that comments like this one will always work */
115 const char line_comment_chars[] = "#";
117 /* We needed an unused char for line separation to work around the
118 lack of macros, using sed and such. */
119 const char line_separator_chars[] = "@";
121 /* Chars that can be used to separate mant from exp in floating point nums */
122 const char EXP_CHARS[] = "eE";
124 /* Chars that mean this number is a floating point constant */
127 const char FLT_CHARS[] = "rRsSfFdDxXpP";
129 /* Also be aware that MAXIMUM_NUMBER_OF_CHARS_FOR_FLOAT may have to be
130 changed in read.c . Ideally it shouldn't have to know about it at all,
131 but nothing is ideal around here.
134 static unsigned char octal[256];
135 #define isoctal(c) octal[c]
136 static unsigned char toHex[256];
139 * anull bit - causes the branch delay slot instructions to not be executed
141 #define ANNUL (1 << 29)
147 if (strncmp(input_line_pointer, ".text", 5) == 0) {
148 input_line_pointer += 5;
152 if (strncmp(input_line_pointer, ".data", 5) == 0) {
153 input_line_pointer += 5;
157 if (strncmp(input_line_pointer, ".data1", 6) == 0) {
158 input_line_pointer += 6;
162 /* Literals can't go in the text segment because you can't read
163 from instruction memory on some 29k's. So, into initialized data. */
164 if (strncmp(input_line_pointer, ".lit", 4) == 0) {
165 input_line_pointer += 4;
166 subseg_new(SEG_DATA, 200);
167 demand_empty_rest_of_line();
171 as_bad("Unknown segment type");
172 demand_empty_rest_of_line();
179 subseg_new(SEG_DATA, 1);
180 demand_empty_rest_of_line();
184 /* Install symbol definition that maps REGNAME to REGNO.
185 FIXME-SOON: These are not recognized in mixed case. */
188 insert_sreg (regname, regnum)
192 /* FIXME-SOON, put something in these syms so they won't be output to the symbol
193 table of the resulting object file. */
195 /* Must be large enough to hold the names of the special registers. */
199 symbol_table_insert(symbol_new(regname, SEG_REGISTER, regnum, &zero_address_frag));
200 for (i = 0; regname[i]; i++)
201 buf[i] = islower (regname[i]) ? toupper (regname[i]) : regname[i];
204 symbol_table_insert(symbol_new(buf, SEG_REGISTER, regnum, &zero_address_frag));
205 } /* insert_sreg() */
207 /* Install symbol definitions for assorted special registers.
208 See ASM29K Ref page 2-9. */
210 void define_some_regs() {
213 /* Protected special-purpose register names */
214 insert_sreg ("vab", SREG+0);
215 insert_sreg ("ops", SREG+1);
216 insert_sreg ("cps", SREG+2);
217 insert_sreg ("cfg", SREG+3);
218 insert_sreg ("cha", SREG+4);
219 insert_sreg ("chd", SREG+5);
220 insert_sreg ("chc", SREG+6);
221 insert_sreg ("rbp", SREG+7);
222 insert_sreg ("tmc", SREG+8);
223 insert_sreg ("tmr", SREG+9);
224 insert_sreg ("pc0", SREG+10);
225 insert_sreg ("pc1", SREG+11);
226 insert_sreg ("pc2", SREG+12);
227 insert_sreg ("mmu", SREG+13);
228 insert_sreg ("lru", SREG+14);
230 /* Unprotected special-purpose register names */
231 insert_sreg ("ipc", SREG+128);
232 insert_sreg ("ipa", SREG+129);
233 insert_sreg ("ipb", SREG+130);
234 insert_sreg ("q", SREG+131);
235 insert_sreg ("alu", SREG+132);
236 insert_sreg ("bp", SREG+133);
237 insert_sreg ("fc", SREG+134);
238 insert_sreg ("cr", SREG+135);
239 insert_sreg ("fpe", SREG+160);
240 insert_sreg ("inte",SREG+161);
241 insert_sreg ("fps", SREG+162);
242 /* "", SREG+163); Reserved */
243 insert_sreg ("exop",SREG+164);
244 } /* define_some_regs() */
246 /* This function is called once, at assembler startup time. It should
247 set up all the tables, etc. that the MD part of the assembler will need. */
251 register char *retval = NULL;
253 register int skipnext = 0;
254 register unsigned int i;
255 register char *strend, *strend2;
257 /* Hash up all the opcodes for fast use later. */
259 op_hash = hash_new();
261 as_fatal("Virtual memory exhausted");
263 for (i = 0; i < num_opcodes; i++)
265 const char *name = machine_opcodes[i].name;
272 /* Hack to avoid multiple opcode entries. We pre-locate all the
273 variations (b/i field and P/A field) and handle them. */
275 if (!strcmp (name, machine_opcodes[i+1].name)) {
276 if ((machine_opcodes[i].opcode ^ machine_opcodes[i+1].opcode)
279 strend = machine_opcodes[i ].args+strlen(machine_opcodes[i ].args)-1;
280 strend2 = machine_opcodes[i+1].args+strlen(machine_opcodes[i+1].args)-1;
283 if (*strend2 != 'i') goto bad_table;
286 if (*strend2 != 'b') goto bad_table;
289 if (*strend2 != 'A') goto bad_table;
292 if (*strend2 != 'P') goto bad_table;
296 fprintf (stderr, "internal error: can't handle opcode %s\n", name);
300 /* OK, this is an i/b or A/P pair. We skip the higher-valued one,
301 and let the code for operand checking handle OR-ing in the bit. */
302 if (machine_opcodes[i].opcode & 1)
308 retval = hash_insert (op_hash, name, &machine_opcodes[i]);
309 if (retval != NULL && *retval != '\0')
311 fprintf (stderr, "internal error: can't hash `%s': %s\n",
312 machine_opcodes[i].name, retval);
318 as_fatal("Broken assembler. No assembly attempted.");
320 for (i = '0'; i < '8'; ++i)
322 for (i = '0'; i <= '9'; ++i)
324 for (i = 'a'; i <= 'f'; ++i)
325 toHex[i] = i + 10 - 'a';
326 for (i = 'A'; i <= 'F'; ++i)
327 toHex[i] = i + 10 - 'A';
336 /* Assemble a single instruction. Its label has already been handled
337 by the generic front end. We just parse opcode and operands, and
338 produce the bytes of data and relocation. */
340 void md_assemble(str)
349 /* put out the opcode */
350 md_number_to_chars(toP, the_insn.opcode, 4);
352 /* put out the symbol-dependent stuff */
353 if (the_insn.reloc != NO_RELOC) {
355 frag_now, /* which frag */
356 (toP - frag_now->fr_literal + the_insn.reloc_offset), /* where */
358 the_insn.exp.X_add_symbol,
359 the_insn.exp.X_subtract_symbol,
360 the_insn.exp.X_add_number,
368 parse_operand (s, operandp)
370 expressionS *operandp;
372 char *save = input_line_pointer;
376 input_line_pointer = s;
377 seg = expr (0, operandp);
378 new = input_line_pointer;
379 input_line_pointer = save;
381 if (seg == SEG_ABSENT)
382 as_bad("Missing operand");
386 /* Instruction parsing. Takes a string containing the opcode.
387 Operands are at input_line_pointer. Output is in the_insn.
388 Warnings or errors are generated. */
397 /* !!!! unsigned long i; */
398 struct machine_opcode *insn;
400 unsigned long opcode;
401 /* !!!! unsigned int mask; */
402 expressionS the_operand;
403 expressionS *operand = &the_operand;
406 /* Must handle `div0' opcode. */
409 for (; isalnum(*s); ++s)
417 case ' ': /* FIXME-SOMEDAY more whitespace */
422 as_bad("Unknown opcode: `%s'", str);
425 if ((insn = (struct machine_opcode *) hash_find(op_hash, str)) == NULL) {
426 as_bad("Unknown opcode `%s'.", str);
430 opcode = insn->opcode;
431 memset(&the_insn, '\0', sizeof(the_insn));
432 the_insn.reloc = NO_RELOC;
435 * Build the opcode, checking as we go to make
436 * sure that the operands match.
438 * If an operand matches, we modify the_insn or opcode appropriately,
439 * and do a "continue". If an operand fails to match, we "break".
441 if (insn->args[0] != '\0')
442 s = parse_operand (s, operand); /* Prime the pump */
444 for (args = insn->args; ; ++args) {
447 case '\0': /* end of args */
449 /* We are truly done. */
450 the_insn.opcode = opcode;
453 as_bad("Too many operands: %s", s);
456 case ',': /* Must match a comma */
458 s = parse_operand (s, operand); /* Parse next opnd */
463 case 'v': /* Trap numbers (immediate field) */
464 if (operand->X_seg == SEG_ABSOLUTE) {
465 if (operand->X_add_number < 256) {
466 opcode |= (operand->X_add_number << 16);
469 as_bad("Immediate value of %d is too large",
470 operand->X_add_number);
474 the_insn.reloc = RELOC_8;
475 the_insn.reloc_offset = 1; /* BIG-ENDIAN Byte 1 of insn */
476 the_insn.exp = *operand;
479 case 'b': /* A general register or 8-bit immediate */
481 /* We treat the two cases identically since we mashed
482 them together in the opcode table. */
483 if (operand->X_seg == SEG_REGISTER)
486 opcode |= IMMEDIATE_BIT;
487 if (operand->X_seg == SEG_ABSOLUTE) {
488 if (operand->X_add_number < 256) {
489 opcode |= operand->X_add_number;
492 as_bad("Immediate value of %d is too large",
493 operand->X_add_number);
497 the_insn.reloc = RELOC_8;
498 the_insn.reloc_offset = 3; /* BIG-ENDIAN Byte 3 of insn */
499 the_insn.exp = *operand;
502 case 'a': /* next operand must be a register */
505 /* lrNNN or grNNN or %%expr or a user-def register name */
506 if (operand->X_seg != SEG_REGISTER)
507 break; /* Only registers */
508 know (operand->X_add_symbol == 0);
509 know (operand->X_subtract_symbol == 0);
510 reg = operand->X_add_number;
512 break; /* No special registers */
515 * Got the register, now figure out where
516 * it goes in the opcode.
532 as_fatal("failed sanity check.");
535 case 'x': /* 16 bit constant, zero-extended */
536 case 'X': /* 16 bit constant, one-extended */
537 if (operand->X_seg == SEG_ABSOLUTE) {
538 opcode |= (operand->X_add_number & 0xFF) << 0 |
539 ((operand->X_add_number & 0xFF00) << 8);
542 the_insn.reloc = RELOC_CONST;
543 the_insn.exp = *operand;
547 if (operand->X_seg == SEG_ABSOLUTE) {
548 opcode |= (operand->X_add_number & 0x00FF0000) >> 16 |
549 (((unsigned long)operand->X_add_number
550 /* avoid sign ext */ & 0xFF000000) >> 8);
553 the_insn.reloc = RELOC_CONSTH;
554 the_insn.exp = *operand;
557 case 'P': /* PC-relative jump address */
558 case 'A': /* Absolute jump address */
559 /* These two are treated together since we folded the
560 opcode table entries together. */
561 if (operand->X_seg == SEG_ABSOLUTE) {
562 opcode |= ABSOLUTE_BIT |
563 (operand->X_add_number & 0x0003FC00) << 6 |
564 ((operand->X_add_number & 0x000003FC) >> 2);
567 the_insn.reloc = RELOC_JUMPTARG;
568 the_insn.exp = *operand;
569 the_insn.pcrel = 1; /* Assume PC-relative jump */
570 /* FIXME-SOON, Do we figure out whether abs later, after know sym val? */
573 case 'e': /* Coprocessor enable bit for LOAD/STORE insn */
574 if (operand->X_seg == SEG_ABSOLUTE) {
575 if (operand->X_add_number == 0)
577 if (operand->X_add_number == 1) {
584 case 'n': /* Control bits for LOAD/STORE instructions */
585 if (operand->X_seg == SEG_ABSOLUTE &&
586 operand->X_add_number < 128) {
587 opcode |= (operand->X_add_number << 16);
592 case 's': /* Special register number */
593 if (operand->X_seg != SEG_REGISTER)
594 break; /* Only registers */
595 if (operand->X_add_number < SREG)
596 break; /* Not a special register */
597 opcode |= (operand->X_add_number & 0xFF) << 8;
600 case 'u': /* UI bit of CONVERT */
601 if (operand->X_seg == SEG_ABSOLUTE) {
602 if (operand->X_add_number == 0)
604 if (operand->X_add_number == 1) {
611 case 'r': /* RND bits of CONVERT */
612 if (operand->X_seg == SEG_ABSOLUTE &&
613 operand->X_add_number < 8) {
614 opcode |= operand->X_add_number << 4;
619 case 'd': /* FD bits of CONVERT */
620 if (operand->X_seg == SEG_ABSOLUTE &&
621 operand->X_add_number < 4) {
622 opcode |= operand->X_add_number << 2;
628 case 'f': /* FS bits of CONVERT */
629 if (operand->X_seg == SEG_ABSOLUTE &&
630 operand->X_add_number < 4) {
631 opcode |= operand->X_add_number << 0;
637 if (operand->X_seg == SEG_ABSOLUTE &&
638 operand->X_add_number < 4) {
639 opcode |= operand->X_add_number << 16;
645 if (operand->X_seg == SEG_ABSOLUTE &&
646 operand->X_add_number < 16) {
647 opcode |= operand->X_add_number << 18;
655 /* Types or values of args don't match. */
656 as_bad("Invalid operands");
662 This is identical to the md_atof in m68k.c. I think this is right,
665 Turn a string in input_line_pointer into a floating point constant of type
666 type, and store the appropriate bytes in *litP. The number of LITTLENUMS
667 emitted is stored in *sizeP . An error message is returned, or NULL on OK.
670 /* Equal to MAX_PRECISION in atof-ieee.c */
671 #define MAX_LITTLENUMS 6
674 md_atof(type,litP,sizeP)
680 LITTLENUM_TYPE words[MAX_LITTLENUMS];
681 LITTLENUM_TYPE *wordP;
712 return "Bad call to MD_ATOF()";
714 t=atof_ieee(input_line_pointer,type,words);
716 input_line_pointer=t;
717 *sizeP=prec * sizeof(LITTLENUM_TYPE);
718 for(wordP=words;prec--;) {
719 md_number_to_chars(litP,(long)(*wordP++),sizeof(LITTLENUM_TYPE));
720 litP+=sizeof(LITTLENUM_TYPE);
722 return ""; /* Someone should teach Dean about null pointers */
726 * Write out big-endian.
729 md_number_to_chars(buf,val,n)
747 as_fatal("failed sanity check.");
752 void md_apply_fix(fixP, val)
756 char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
758 fixP->fx_addnumber = val; /* Remember value for emit_reloc */
761 know(fixP->fx_size == 4);
762 know(fixP->fx_r_type < NO_RELOC);
765 * This is a hack. There should be a better way to
768 if (fixP->fx_r_type == RELOC_WDISP30 && fixP->fx_addsy) {
769 val += fixP->fx_where + fixP->fx_frag->fr_address;
772 switch (fixP->fx_r_type) {
786 val = (val >>= 2) + 1;
787 buf[0] |= (val >> 24) & 0x3f;
794 buf[1] |= (val >> 26) & 0x3f;
800 buf[2] |= (val >> 8) & 0x03;
805 buf[2] |= (val >> 8) & 0x1f;
810 val = (val >>= 2) + 1;
813 buf[1] |= (val >> 16) & 0x3f;
827 case RELOC_JUMPTARG: /* 00XX00XX pattern in a word */
828 buf[1] = val >> 10; /* Holds bits 0003FFFC of address */
832 case RELOC_CONST: /* 00XX00XX pattern in a word */
833 buf[1] = val >> 8; /* Holds bits 0000XXXX */
837 case RELOC_CONSTH: /* 00XX00XX pattern in a word */
838 buf[1] = val >> 24; /* Holds bits XXXX0000 */
844 as_bad("bad relocation type: 0x%02x", fixP->fx_r_type);
851 short tc_coff_fix2rtype(fixP)
855 switch (fixP->fx_r_type) {
856 case RELOC_32: return(R_WORD);
857 case RELOC_8: return(R_BYTE);
858 case RELOC_CONST: return (R_ILOHALF);
859 case RELOC_CONSTH: return (R_IHIHALF);
860 case RELOC_JUMPTARG: return (R_IREL);
861 default: printf("need %o3\n", fixP->fx_r_type);
863 } /* switch on type */
866 } /* tc_coff_fix2rtype() */
867 #endif /* OBJ_COFF */
869 /* should never be called for sparc */
870 void md_create_short_jump(ptr, from_addr, to_addr, frag, to_symbol)
872 long from_addr, to_addr;
876 as_fatal("a29k_create_short_jmp\n");
879 /* should never be called for 29k */
880 void md_convert_frag(headers, fragP)
881 object_headers *headers;
882 register fragS *fragP;
884 as_fatal("sparc_convert_frag\n");
887 /* should never be called for 29k */
888 void md_create_long_jump(ptr, from_addr, to_addr, frag, to_symbol)
895 as_fatal("sparc_create_long_jump\n");
898 /* should never be called for a29k */
899 int md_estimate_size_before_relax(fragP, segtype)
900 register fragS *fragP;
903 as_fatal("sparc_estimate_size_before_relax\n");
908 /* for debugging only */
911 struct machine_it *insn;
942 fprintf(stderr, "ERROR: %s\n");
944 fprintf(stderr, "opcode=0x%08x\n", insn->opcode);
945 fprintf(stderr, "reloc = %s\n", Reloc[insn->reloc]);
946 fprintf(stderr, "exp = {\n");
947 fprintf(stderr, "\t\tX_add_symbol = %s\n",
948 insn->exp.X_add_symbol ?
949 (S_GET_NAME(insn->exp.X_add_symbol) ?
950 S_GET_NAME(insn->exp.X_add_symbol) : "???") : "0");
951 fprintf(stderr, "\t\tX_sub_symbol = %s\n",
952 insn->exp.X_subtract_symbol ?
953 (S_GET_NAME(insn->exp.X_subtract_symbol) ?
954 S_GET_NAME(insn->exp.X_subtract_symbol) : "???") : "0");
955 fprintf(stderr, "\t\tX_add_number = %d\n",
956 insn->exp.X_add_number);
957 fprintf(stderr, "}\n");
962 /* Translate internal representation of relocation info to target format.
964 On sparc/29k: first 4 bytes are normal unsigned long address, next three
965 bytes are index, most sig. byte first. Byte 7 is broken up with
966 bit 7 as external, bits 6 & 5 unused, and the lower
967 five bits as relocation type. Next 4 bytes are long addend. */
972 void tc_aout_fix_to_chars(where, fixP, segment_address_in_file)
975 relax_addressT segment_address_in_file;
979 know(fixP->fx_r_type < NO_RELOC);
980 know(fixP->fx_addsy != NULL);
982 md_number_to_chars(where,
983 fixP->fx_frag->fr_address + fixP->fx_where - segment_address_in_file,
986 r_symbolnum = (S_IS_DEFINED(fixP->fx_addsy)
987 ? S_GET_TYPE(fixP->fx_addsy)
988 : fixP->fx_addsy->sy_number);
990 where[4] = (r_symbolnum >> 16) & 0x0ff;
991 where[5] = (r_symbolnum >> 8) & 0x0ff;
992 where[6] = r_symbolnum & 0x0ff;
993 where[7] = (((!S_IS_DEFINED(fixP->fx_addsy)) << 7) & 0x80) | (0 & 0x60) | (fixP->fx_r_type & 0x1F);
995 md_number_to_chars(&where[8], fixP->fx_addnumber, 4);
998 } /* tc_aout_fix_to_chars() */
1000 #endif /* OBJ_AOUT */
1003 md_parse_option(argP,cntP,vecP)
1012 /* Default the values of symbols known that should be "predefined". We
1013 don't bother to predefine them unless you actually use one, since there
1014 are a lot of them. */
1016 symbolS *md_undefined_symbol (name)
1020 char testbuf[5+ /*SLOP*/ 5];
1022 if (name[0] == 'g' || name[0] == 'G' || name[0] == 'l' || name[0] == 'L')
1024 /* Perhaps a global or local register name */
1025 if (name[1] == 'r' || name[1] == 'R')
1027 /* Parse the number, make sure it has no extra zeroes or trailing
1029 regnum = atol(&name[2]);
1032 sprintf(testbuf, "%ld", regnum);
1033 if (strcmp (testbuf, &name[2]) != 0)
1034 return 0; /* gr007 or lr7foo or whatever */
1036 /* We have a wiener! Define and return a new symbol for it. */
1037 if (name[0] == 'l' || name[0] == 'L')
1039 return(symbol_new(name, SEG_REGISTER, regnum, &zero_address_frag));
1046 /* Parse an operand that is machine-specific. */
1048 void md_operand(expressionP)
1049 expressionS *expressionP;
1052 if (input_line_pointer[0] == '%' && input_line_pointer[1] == '%')
1054 /* We have a numeric register expression. No biggy. */
1055 input_line_pointer += 2; /* Skip %% */
1056 (void)expression (expressionP);
1057 if (expressionP->X_seg != SEG_ABSOLUTE
1058 || expressionP->X_add_number > 255)
1059 as_bad("Invalid expression after %%%%\n");
1060 expressionP->X_seg = SEG_REGISTER;
1062 else if (input_line_pointer[0] == '&')
1064 /* We are taking the 'address' of a register...this one is not
1065 in the manual, but it *is* in traps/fpsymbol.h! What they
1066 seem to want is the register number, as an absolute number. */
1067 input_line_pointer++; /* Skip & */
1068 (void)expression (expressionP);
1069 if (expressionP->X_seg != SEG_REGISTER)
1070 as_bad("Invalid register in & expression");
1072 expressionP->X_seg = SEG_ABSOLUTE;
1076 /* Round up a section size to the appropriate boundary. */
1078 md_section_align (segment, size)
1082 return size; /* Byte alignment is fine */
1085 /* Exactly what point is a PC-relative offset relative TO?
1086 On the 29000, they're relative to the address of the instruction,
1087 which we have set up as the address of the fixup too. */
1088 long md_pcrel_from (fixP)
1091 return fixP->fx_where + fixP->fx_frag->fr_address;
1100 /* end of tc-a29k.c */