aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/zee.c
blob: 1975b02b2f112e9717725b3215f576b5dbeef413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile { target { ! { ia32 } } } } */
/* { dg-options "-O2 -fzee" } */
/* { dg-final { scan-assembler-not "mov\[\\t \]+\(%\[\^,\]+\),\[\\t \]*\\1" } } */
int mask[100];
int foo(unsigned x)
{
  if (x < 10)
    x = x * 45;
  else
    x = x * 78;
  return mask[x];
}