This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH][ARM] Fix gcc.target/arm/minmax_minus.c
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Kyrylo Tkachov <Kyrylo dot Tkachov at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Ramana Radhakrishnan <Ramana dot Radhakrishnan at arm dot com>
- Date: Fri, 26 Jul 2013 15:47:38 +0100
- Subject: Re: [PATCH][ARM] Fix gcc.target/arm/minmax_minus.c
- References: <004501ce8a0e$9db4a540$d91defc0$ at firstname.lastname@example.org>
On 26/07/13 15:44, Kyrylo Tkachov wrote:
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?
2013-07-26 Kyrylo Tkachov <email@example.com>
* gcc.target/arm/minmax_minus.c: Scan for absence of mov.