Match: Support .SAT_SUB with IMM op for form 1-4
[official-gcc.git] / gcc / testsuite / gcc.target / riscv / zero-extend-4.c
blob3c776b09d6e427550b5f0e5ec1b3faad69a203d2
1 /* { dg-do compile { target { riscv64*-*-* } } } */
2 /* { dg-options "-march=rv64gc -mabi=lp64" } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" } } */
4 int a, b, e;
5 struct c *d;
6 struct c
8 int bins;
9 int binmap[10];
11 f(void)
13 for (;;)
15 e = (unsigned) a >> 3;
16 b = (long) &d[e];
17 if (b)
18 d->binmap[0] = e;
21 /* { dg-final { scan-assembler-times {\msext\.w\M} 0 } } */