1 /* setup_incoming_promotions should detect x to be already sign-extended due
2 to PROMOTE_MODE. Thus the truncation should be removed by combine. Based
3 on gcc.c-torture/execute/pr34070-2.c. */
4 /* { dg-options "-mgp64" } */
5 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
6 /* { dg-final { scan-assembler-not "\tsll\t\[^\n\]*,0" } } */
8 NOMIPS16 int f(unsigned int x, int n, int *p)
12 return ((int)x) / (1 << n);