re PR target/65604 (MIPS -fno-delayed-branch generates incorrect code with -mcheck-zero-division)
PR target/65604 * gcc.target/mips/div-delay.c: New test. From-SVN: r232986
This commit is contained in:
parent
87a5ab58c5
commit
af932cdb8a
@ -1,3 +1,8 @@
|
||||
2016-01-29 Steve Ellcey <sellcey@imgtec.com>
|
||||
|
||||
PR target/65604
|
||||
* gcc.target/mips/div-delay.c: New test.
|
||||
|
||||
2016-01-29 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/69551
|
||||
|
13
gcc/testsuite/gcc.target/mips/div-delay.c
Normal file
13
gcc/testsuite/gcc.target/mips/div-delay.c
Normal file
@ -0,0 +1,13 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-march=mips1 -fno-delayed-branch" } */
|
||||
/* { dg-final { scan-assembler "\tbne\t.*\tnop" } } */
|
||||
|
||||
/* Ensure that mips1 does not put anything in the delay slot of the bne
|
||||
instruction when checking for divide by zero. mips2+ systems use teq
|
||||
instead of bne and teq has no delay slot. */
|
||||
|
||||
NOCOMPRESSION int
|
||||
foo (int a, int b)
|
||||
{
|
||||
return a / b;
|
||||
}
|
Loading…
Reference in New Issue
Block a user