1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* { dg-do compile } */ /* { dg-options "-O2 isa>=4" } */ /* { dg-final { scan-assembler "movz" } } */ /* { dg-final { scan-assembler "movn" } } */ void ext_int (int); NOMIPS16 int sub1 (int i, int j, int k) { ext_int (k ? i : j); } NOMIPS16 int sub2 (int i, int j, long l) { ext_int (!l ? i : j); }