aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/zee.c
blob: 608f7c9fc3749fd83bf0313028d1b5a6c9e8ae14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2" } */
/* { 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];
}