jkmcnk / sx-gcc

The GNU Compiler Collection port to NEC SX CPU architecture.
GNU General Public License v2.0
0 stars 2 forks source link

fltx allows wrong immediates #90

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
  fltx $s35,4294967295

is happily assembled by gas. this is wrong. second param is YSI, so it
should be either scalar reg or immediate I, -64 <= I <= 63.

almost certainly other instructions that take type I immediate are affected
as well.

fix sx_parse_immediate() (or fltx opcode definition, whichever is the cause
of this bug) so that only I in proper range is accepted.

Original issue reported on code.google.com by jmoc...@gmail.com on 14 Jan 2009 at 3:50

GoogleCodeExporter commented 8 years ago
This issue is fixed in r185.

Original comment by nou...@gmail.com on 15 Jan 2009 at 11:42