Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.target / arm / smlaltt-1.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_dsp } */
3 /* { dg-options "-O2" } */
4
5 long long int
6 foo (long long x, int in1, int in2)
7 {
8   short a = (in1 & 0xffff0000) >> 16;
9   short b = (in2 & 0xffff0000) >> 16;
10
11   return x + b * a;
12 }
13
14 /* { dg-final { scan-assembler "smlaltt\\t" { xfail *-*-* } } } */