gcc/testsuite/gcc.target/s390/insv-3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -march=z10 -mzarch" } */ |
| 3 | |
| 4 | /* risbg with z bit would work here but we rather want this to be a shift. */ |
| 5 | struct |
| 6 | { |
| 7 | int a:31; |
| 8 | int b:1; |
| 9 | } s; |
| 10 | |
| 11 | void |
| 12 | foo (int in) |
| 13 | { |
| 14 | s.a = in; |
| 15 | s.b = 0; |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-assembler-not "risbg" } } */ |