2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / ext_ins.c
blob8186b84a27f21e68813406ec83feb8fd13962567
1 /* { dg-do compile } */
2 /* { dg-options "isa_rev>=2" } */
3 /* { dg-final { scan-assembler "ext" } } */
4 /* { dg-final { scan-assembler "ins" } } */
6 struct A
8 unsigned int i : 2;
9 unsigned int j : 3;
10 unsigned int k : 4;
11 unsigned int l : 5;
14 void func (struct A);
16 unsigned int f1 (struct A a)
18 return a.j;
21 void f2 (int i)
23 struct A c;
24 c.j = i;
25 func (c);