2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / truncate-5.c
blobf2a1875e959533fa7e1813478e46b66721ed360b
1 /* If we AND in DI mode (i.e. replace the order of TRUNCATE and AND) then we
2 can remove the TRUNCATE. */
3 /* { dg-options "-mgp64" } */
4 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
5 /* { dg-final { scan-assembler-not "\tsll\t\[^\n\]*,0" } } */
7 struct s
9 unsigned a:5;
12 NOMIPS16 void
13 f (struct s *s, unsigned long long a)
15 s->a = a & 0x3;