This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH, ARM] Tweak gcc.c-torture/execute/20101011-1.c to test division-by-zero trapping on ARM
- From: Mike Stump <mikestump at comcast dot net>
- To: Julian Brown <julian at codesourcery dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, <ramana dot radhakrishnan at linaro dot org>, <rearnsha at arm dot com>
- Date: Fri, 20 Jul 2012 09:18:04 -0700
- Subject: Re: [PATCH, ARM] Tweak gcc.c-torture/execute/20101011-1.c to test division-by-zero trapping on ARM
- References: <20120720113552.5b452950@octopus>
On Jul 20, 2012, at 3:35 AM, Julian Brown wrote:
> On several architectures, the test gcc.c-torture/execute/20101011-1.c
> tests the raising of a signal when a division by zero occurs, but at
> present the test is simply skipped on ARM. We can make the test
> slightly more useful by using the EABI-provided ability to define a
> division-by-zero handling function which raises SIGFPE -- thus
> mimicking the behaviour of other targets, and allowing us to run the
> test as intended.
> If the target has hardware integer division instructions, the test is
> still skipped.
> OK to apply?
Ok. (with the idea that the arm folks have the last say...)