This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/6526] [SH4] sdivsi3_i4 can clobber xd0/xd2


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6526



------- Additional Comments From marcus@mc.pp.se  2003-06-02 12:25 -------
Subject: Re:  [SH4] sdivsi3_i4 can clobber xd0/xd2


"joern.rennecke@superh.com" <gcc-bugzilla@gcc.gnu.org> writes:

> If you want to change fpscr so that the change is effecitve and preserved
> in and across function calls, you should use __set_fpscr.
> The new value for fpscr is to be passed in r4, and it is put in fpscr,
> and with appropriate modifications to the PR and SZ bit into the two
> locations of __fpscr_values.

Sorry, but this isn't really helpful.  First, the current libgcc
functions do _not_ use __fpscr_values, so using __set_fpscr won't help
anyway (as you can see in the test case, which _does_ use __set_fpscr
but still fails).  Second, I need to use frchg for preformance reasons.


  // Marcus






------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]