2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / octeon-baddu-1.c
blob8dd5be1676598668967e6d10db3a4596311afc68
1 /* { dg-do compile } */
2 /* { dg-options "-O -march=octeon" } */
3 /* { dg-final { scan-assembler-times "\tbaddu\t" 4 } } */
4 /* { dg-final { scan-assembler-not "\tandi\t" } } */
6 NOMIPS16 unsigned char
7 g (long long a, long long b)
9 return a + b;
12 NOMIPS16 unsigned long long
13 h (unsigned long long a, unsigned long long b)
15 unsigned char c = a + b;
16 return c;
19 NOMIPS16 long long
20 ff (long long a, long long b)
22 unsigned char c = a + b;
23 return c;
26 NOMIPS16 int
27 gg (int a, int b)
29 return (a + b) & 0xff;