2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / octeon-exts-3.c
blob9d0e9302a54e0b2facf8bf9f3f138be7c76a9c22
1 /* { dg-do compile } */
2 /* { dg-options "-O -march=octeon -mgp64" } */
3 /* { dg-final { scan-assembler-times "\texts\t" 3 } } */
5 struct foo
7 unsigned long long a:10;
8 unsigned long long b:32;
9 unsigned long long c:22;
12 NOMIPS16 unsigned
13 f (struct foo s)
15 return s.b;
18 struct bar
20 unsigned long long a:15;
21 unsigned long long b:48;
22 unsigned long long c:1;
25 NOMIPS16 int
26 g (struct bar s)
28 return (int) s.b;
31 NOMIPS16 int
32 h (int i)
34 return (i << 4) >> 24;