Debian Codegraph @

gcc/testsuite/gcc.target/avr/torture/shift-r-u16.c

raw
1 /* { dg-do run } */
2 /* { dg-additional-options { -std=gnu99 -fwrapv } } */
3
4 #define OP >>
5 #define BITS 16
6 typedef __UINT16_TYPE__ T;
7
8 #include "test-shift.h"
9
10 const AS T vals[] =
11 {
12 1, 0x01a2, 0x7f32, 0x7e81, 0x7654
13 };
14
15 int main (void)
16 {
17 for (int i = 0; i < ARRAY_SIZE (vals); ++i)
18 {
19 testx (vals[i]);
20 testx (-vals[i]);
21 }
22 testx (0x8000);
23
24 return 0;
25 }