summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/tst_4.c
blob: 2b869c05c87ec120e1632a1420349a5eb98ff895 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O2" } */

int
f1 (long x)
{
   return ((short) x >= 0) ? x : 0;
}

/* { dg-final { scan-assembler "tst\t(x|w)\[0-9\]*.*32768\n" } } */