include/opcode/
* mips.h: Update documentation of "+s" and "+S". opcodes/ * mips-opc.c (mips_builtin_opcodes): Use "+s" for "cins32" and "+S" for "cins". * mips-dis.c (print_mips_arg): Update "+s" and "+S" comments. Combine cases. gas/ * config/tc-mips.c (mips_ip): Preserve the real bit number for "+p". Require the msb to be <= 31 for "+s". Check that the size is <= 31 for both "+s" and "+S".
This commit is contained in:
		| @@ -1,3 +1,7 @@ | |||||||
|  | 2013-07-07  Richard Sandiford  <rdsandiford@googlemail.com> | ||||||
|  |  | ||||||
|  | 	* mips.h: Update documentation of "+s" and "+S". | ||||||
|  |  | ||||||
| 2013-07-07  Richard Sandiford  <rdsandiford@googlemail.com> | 2013-07-07  Richard Sandiford  <rdsandiford@googlemail.com> | ||||||
|  |  | ||||||
| 	* mips.h: Document "+i". | 	* mips.h: Document "+i". | ||||||
|   | |||||||
| @@ -508,11 +508,10 @@ struct mips_opcode | |||||||
|    "+P" Position field of cins/exts aliasing cins32/exts32.  Matches if |    "+P" Position field of cins/exts aliasing cins32/exts32.  Matches if | ||||||
| 	32 <= pos < 64, otherwise skips to next candidate. | 	32 <= pos < 64, otherwise skips to next candidate. | ||||||
|    "+Q" Immediate field of seqi/snei.  Enforces -512 <= imm < 512. |    "+Q" Immediate field of seqi/snei.  Enforces -512 <= imm < 512. | ||||||
|    "+s" Length-minus-one field of cins/exts.  Enforces: 0 <= lenm1 < 32. |    "+s" Length-minus-one field of cins32/exts32.  Requires msb position | ||||||
|    "+S" Length-minus-one field of cins32/exts32 or cins/exts aliasing | 	of the field to be <= 31. | ||||||
| 	cint32/exts32.  Enforces non-negative value and that |    "+S" Length-minus-one field of cins/exts.  Requires msb position | ||||||
| 	pos + lenm1 < 32 or pos + lenm1 < 64 depending whether previous | 	of the field to be <= 63. | ||||||
| 	position field is "+p" or "+P". |  | ||||||
|  |  | ||||||
|    Loongson-3A: |    Loongson-3A: | ||||||
|    "+a" 8-bit signed offset in bit 6 (OP_*_OFFSET_A) |    "+a" 8-bit signed offset in bit 6 (OP_*_OFFSET_A) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user