1 /* Ensure that explicit zero-entend instructions are present when compiling
2 for targets without sram-ecc enabled (in which sub-dword loads do not
3 zero the high bits of the target register). */
4
5 /* { dg-do compile } */
6 /* { dg-options "-O2 -msram-ecc=off" } */
7
8 extern unsigned short s;
9
10 unsigned short
11 f ()
12 {
13 return s;
14 }
15
16 /* { dg-final { scan-assembler "lshl.* 16" } } */
17 /* { dg-final { scan-assembler "lshr.* 16" } } */