Debian Codegraph @

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

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