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]

Re: [PATCH] aarch64 gcc.c-torture/execute/20101011-1.c failures


On 18 November 2013 18:02, Cesar Philippidis <cesar@codesourcery.com> wrote:

>>> gcc.c-torture/execute/20101011-1.c test on aarch64. The reason why this
>>> test fails is because aarch64 does not trap on integer division by zero.
>>>
>>> Is this OK for trunk? If so, please commit it because I do not have an
>>> svn account.

This is OK.

The comment Jeff highlighted is incorrect. AArch64 does not trap on
integer division.

To get integer trap on divide by zero behavior we would have to go the
mips route and add -mdivide-traps to explicitly check and generate a
brk #XXX instruction.

/Marcus


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