gcc/testsuite/gcc.target/mips/truncate-5.c
raw| 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" } } */ |
| 6 | |
| 7 | struct s |
| 8 | { |
| 9 | unsigned a:5; |
| 10 | }; |
| 11 | |
| 12 | NOMIPS16 void |
| 13 | f (struct s *s, unsigned long long a) |
| 14 | { |
| 15 | s->a = a & 0x3; |
| 16 | } |