Remove not needed __builtin_expect due to malloc predictor.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / div-delay.c
blobbdeb125d3f544cd8aded98ecc07f28e2d664ce89
1 /* { dg-do compile } */
2 /* { dg-options "-march=mips1 -fno-delayed-branch" } */
3 /* { dg-final { scan-assembler "\tbne\t.*\tnop" } } */
5 /* Ensure that mips1 does not put anything in the delay slot of the bne
6 instruction when checking for divide by zero. mips2+ systems use teq
7 instead of bne and teq has no delay slot. */
9 NOCOMPRESSION int
10 foo (int a, int b)
12 return a / b;