This is the mail archive of the gcc-patches@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]

[fixed-point] Add tests for unary and binary operators


Hi,

  This patch fixed bugs when setting the maximum value for SSADD, SSSUB and SSNEG.
Two new fixed-point tests are added.  Thanks!

Regards,
Chao-ying

gcc/ChangeLog
2007-02-28  Chao-ying Fu  <fu@mips.com>

	* config/fixed-bit.c (stdio.h): Remove include.
	(FIXED_SSADD): Test x >= 0 to set the maximum value.
	(FIXED_SSSUB): Test x >= 0 to set the maximum value.
	(FIXED_SSNEG): Test x >= 0 to set the maximum value.
	* config/mips/mips.md (mips-fixed.md): Comment it out to test the
	emulation library.

gcc/testsuite/ChangeLog
2007-02-28  Chao-ying Fu  <fu@mips.com>

	* gcc.dg/fixed-ponit/unary.c: New test for unary operators.
	* gcc.dg/fixed-ponit/binary.c: New test for binary operators.

Attachment: gcc.diff
Description: gcc.diff


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