[PATCH][ARM] Fix gcc.target/arm/minmax_minus.c

Kyrylo Tkachov kyrylo.tkachov@arm.com
Fri Jul 26 14:47:00 GMT 2013


Hi all,

The minmaxsi_minus.c test in gcc.target/arm/ was added to confirm that we
generate two conditional subtractions instead of two conditional moves and an
unconditional subtraction. It tests that by scanning for two conditional rsb
instructions. But now, the arm backend generates sub instructions instead of
rsb when compiling for Thumb2. They perform the same functionality, but makes
the testcase "fail".

This patch fixes the testacase by scanning for the absence of moves instead.

Ok for trunk?

Thanks,
Kyrill

2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* gcc.target/arm/minmax_minus.c: Scan for absence of mov.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minmax_test.patch
Type: application/octet-stream
Size: 449 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130726/8abd82d8/attachment.obj>


More information about the Gcc-patches mailing list