binutils-gdb/sim
Oleg Endo 57df9adf2d Correct fabs and fneg insns in simulator
It seems that the implementation of the SH fabs and fneg insns in the
simulator is not correct.  They use the FP_UNARY macro which checks the
FPSCR.PR setting and raises an exception if PR = 1 (double precision)
and the register number is not even (i.e. a valid DF reg number).
For normal unary FP insns this is fine.  However, fneg and fabs perform
the same (integer) operations regardless of the FPSCR.PR setting.

This issue initially popped up here
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63260

I've checked some of the failing tests mentioned in GCC PR 63260 above
with the patch applied and the failures go away.

sim/sh/ChangeLog (tiny patch):

	* gencode.c (fabs, fneg): Implement as integer operation
	instead of using the FP_UNARY macro.
2014-11-28 19:44:03 +04:00
..
arm Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
avr Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
bfin Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
common Shadow SIM's debug_printf function 2014-08-28 11:59:09 +01:00
cr16 Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
cris Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
d10v Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
erc32 Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
frv Fix frv-elf sim, default hardware to off. 2014-08-23 04:16:58 +02:00
h8300 Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
igen sim/igen/: Change immediatly to immediately 2014-11-23 07:09:16 +04:00
iq2000 Fix iq2000-elf sim, default hardware to off. 2014-08-23 04:27:26 +02:00
lm32 Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
m32c Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
m32r Fix m32r-elf sim, default hardware to off. 2014-08-23 04:53:28 +02:00
m68hc11 Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
mcore Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
microblaze Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
mips Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
mn10300 Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
moxie Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
msp430 Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
ppc sim/ppc/*: Change immediatly to immediately 2014-11-23 07:11:39 +04:00
rl78 Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
rx Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
sh Correct fabs and fneg insns in simulator 2014-11-28 19:44:03 +04:00
sh64 Fix sh64-elf sim, default hardware to off. 2014-08-23 04:40:36 +02:00
testsuite sim: msp430: start a test framework 2014-03-10 23:59:59 -04:00
v850 Fix --diable-shared --enable-plugins build breakage 2014-08-19 21:59:56 +09:30
.gitignore sim: ignore generated hw-config.h 2011-01-05 17:17:44 +00:00
ChangeLog Sim - Use long int format instead of int to avoid compiling warning 2014-06-30 17:40:02 -07:00
configure sim: msp430: start a test framework 2014-03-10 23:59:59 -04:00
configure.ac sim: unify target->subdir handling for default tests 2010-04-26 16:23:24 +00:00
configure.tgt sim: msp430: start a test framework 2014-03-10 23:59:59 -04:00
MAINTAINERS Add myself as the maintainer for the MSP430 sim. 2014-03-12 11:02:57 +00:00
Makefile.in Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
README-HACKING remove PARAMS from sim 2014-01-07 09:17:05 -07:00