Add compile command to each testcase
[gcc-vect-testsuite.git] / pr43842.c
blob593404ffbcb78a179751bcb5a078ddb714ba2e47
1 /* { dg-do compile } */
3 typedef char int8_t;
4 typedef short int int16_t;
5 typedef int int32_t;
6 typedef unsigned char uint8_t;
7 typedef unsigned short int uint16_t;
8 typedef unsigned int uint32_t;
10 static int16_t
11 safe_rshift_func_int16_t_s_u (int16_t left, unsigned int right)
13 return left || right >= 1 * 8 ? left : left >> right;
16 static int8_t
17 safe_rshift_func_int8_t_s_u (int8_t left, unsigned int right)
19 return left || right >= 1 * 8 ? left : left >> right;
23 static uint32_t
24 safe_add_func_uint32_t_u_u (uint32_t ui1, uint16_t ui2)
26 return ui1 + ui2;
29 int16_t g_4;
30 int8_t g_4_8;
31 uint32_t g_9[1];
32 uint32_t g_9_8[2];
33 int161 (void)
35 int32_t l_2;
37 for (l_2 = -25; l_2; l_2 = safe_add_func_uint32_t_u_u (l_2, 1))
38 g_9[0] ^= safe_rshift_func_int16_t_s_u (g_4, 1);
41 int81 (void)
43 int32_t l_2;
45 for (l_2 = -25; l_2; l_2 = safe_add_func_uint32_t_u_u (l_2, 1))
47 g_9[0] ^= safe_rshift_func_int8_t_s_u (g_4_8, 1);
48 g_9[1] ^= safe_rshift_func_int8_t_s_u (g_4_8, 1);
51 return 0;
54 /* { dg-final { cleanup-tree-dump "vect" } } */