diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-09-24 23:02:53 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-09-24 23:02:53 +0000 |
commit | 469adf23a15a81b7c3948fb54c3703754607e96c (patch) | |
tree | ae145806b334f7418cd0a01527d6768de3e2beab /gas/config | |
parent | 9d696aa3460a66368024dee912bae7c0f87d8167 (diff) | |
download | gdb-469adf23a15a81b7c3948fb54c3703754607e96c.zip gdb-469adf23a15a81b7c3948fb54c3703754607e96c.tar.gz gdb-469adf23a15a81b7c3948fb54c3703754607e96c.tar.bz2 |
* config/tc-m68k.c (m68k_ip): Handle q and v operand specifiers.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-m68k.c | 52 |
1 files changed, 50 insertions, 2 deletions
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index 04f5038..e8c9a5c 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -1184,6 +1184,43 @@ m68k_ip (instring) } break; + case 'q': + switch (opP->mode) + { + case DREG: + case AINDR: + case AINC: + case ADEC: + break; + case DISP: + if (opP->reg == PC || opP->reg == ZPC) + losing++; + break; + default: + losing++; + break; + } + break; + + case 'v': + switch (opP->mode) + { + case DREG: + case AINDR: + case AINC: + case ADEC: + case ABSL: + break; + case DISP: + if (opP->reg == PC || opP->reg == ZPC) + losing++; + break; + default: + losing++; + break; + } + break; + case '#': if (opP->mode != IMMED) losing++; @@ -1788,6 +1825,8 @@ m68k_ip (instring) case 'n': case 'o': case 'p': + case 'q': + case 'v': #ifndef NO_68851 case '|': #endif @@ -2289,6 +2328,9 @@ m68k_ip (instring) addword (nextword); break; + case SIZE_BYTE: + as_bad ("unsupported byte value; use a different suffix"); + /* Fall through. */ case SIZE_WORD: /* Word */ if (isvar (&opP->disp)) add_fix ('w', &opP->disp, 0, 0); @@ -4016,8 +4058,14 @@ md_apply_fix_2 (fixP, val) /* A one byte PC-relative reloc means a short branch. We can't use a short branch with a value of 0 or -1, because those indicate - different opcodes (branches with longer offsets). */ - if (fixP->fx_pcrel + different opcodes (branches with longer offsets). fixup_segment + in write.c may have clobbered fx_pcrel, so we need to examine the + reloc type. */ + if ((fixP->fx_pcrel +#ifdef BFD_ASSEMBLER + || fixP->fx_r_type == BFD_RELOC_8_PCREL +#endif + ) && fixP->fx_size == 1 && (fixP->fx_addsy == NULL || S_IS_DEFINED (fixP->fx_addsy)) |