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

int
foo (long x)
{
   return ((short) x != 0) ? x : 1;
}

/* { dg-final { scan-assembler "tst\t(x|w)\[0-9\]+,\[ \t\]*65535" } } */