Debian Codegraph @

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

raw
1 /* { dg-do run } */
2 /* { dg-additional-options { -std=gnu99 -fwrapv } } */
3
4 #define OP >>
5 #define BITS 32
6 typedef __UINT32_TYPE__ T;
7
8 #include "test-shift.h"
9
10 const AS T vals[] =
11 {
12 1, 0x01a273b9, 0x7f324b01, 0x7e80102, 0x76543219
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 (0x80000000);
23
24 return 0;
25 }