1 /* { dg-do compile } */
2 /* { dg-options "isa>=2 -mabi=32" } */
3 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
4 /* { dg-final { scan-assembler "\taddiu\t" } } */
5 /* { dg-final { scan-assembler-not "\tsubu" } } */
6 
7 NOMIPS16 unsigned long
f(unsigned long * p)8 f(unsigned long *p)
9 {
10   return __sync_fetch_and_sub (p, 5);
11 }
12