Re: trapv question
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 20 Jan 2021 21:27:34 +0000 (16:27 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Wed, 20 Jan 2021 21:30:48 +0000 (16:30 -0500)
commit842afc4e289ed3fe69583672c1a180f268d73799
treedd8ccbfd6ca604c81f05750e8cf8f6497740cf9b
parent0bb27b81a762d3c607bd25409337c749f836c0cd
Re: trapv question

Adjust testcase to so the ADD that is expected to overflow cannot
be optimized.

gcc/testsuite
* gcc.dg/torture/ftrapv-2.c: Make overflow instruction unremovable.
gcc/testsuite/gcc.dg/torture/ftrapv-2.c