summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/movcc-1.c
blob: 1a930c9ac06cc022b766e71df8929bf9e5f7cc36 (plain)
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);
}