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_long (long); NOMIPS16 long sub4 (long i, long j, long k) { ext_long (k ? i : j); } NOMIPS16 long sub5 (long i, long j, int k) { ext_long (!k ? i : j); }