1f08c3bdfSopenharmony_cistatic int shl(int x, int y)
2f08c3bdfSopenharmony_ci{
3f08c3bdfSopenharmony_ci	return x << y;
4f08c3bdfSopenharmony_ci}
5f08c3bdfSopenharmony_ci
6f08c3bdfSopenharmony_cistatic unsigned int ushl(unsigned int x, unsigned int y)
7f08c3bdfSopenharmony_ci{
8f08c3bdfSopenharmony_ci	return x << y;
9f08c3bdfSopenharmony_ci}
10f08c3bdfSopenharmony_ci
11f08c3bdfSopenharmony_cistatic int shr(int x, int y)
12f08c3bdfSopenharmony_ci{
13f08c3bdfSopenharmony_ci	return x >> y;
14f08c3bdfSopenharmony_ci}
15f08c3bdfSopenharmony_ci
16f08c3bdfSopenharmony_cistatic unsigned int ushr(unsigned int x, unsigned int y)
17f08c3bdfSopenharmony_ci{
18f08c3bdfSopenharmony_ci	return x >> y;
19f08c3bdfSopenharmony_ci}
20f08c3bdfSopenharmony_ci
21f08c3bdfSopenharmony_cistatic int and(int x, int y)
22f08c3bdfSopenharmony_ci{
23f08c3bdfSopenharmony_ci	return x & y;
24f08c3bdfSopenharmony_ci}
25f08c3bdfSopenharmony_ci
26f08c3bdfSopenharmony_cistatic unsigned int uand(unsigned int x, unsigned int y)
27f08c3bdfSopenharmony_ci{
28f08c3bdfSopenharmony_ci	return x & y;
29f08c3bdfSopenharmony_ci}
30f08c3bdfSopenharmony_ci
31f08c3bdfSopenharmony_cistatic int or(int x, int y)
32f08c3bdfSopenharmony_ci{
33f08c3bdfSopenharmony_ci	return x | y;
34f08c3bdfSopenharmony_ci}
35f08c3bdfSopenharmony_ci
36f08c3bdfSopenharmony_cistatic unsigned int uor(unsigned int x, unsigned int y)
37f08c3bdfSopenharmony_ci{
38f08c3bdfSopenharmony_ci	return x | y;
39f08c3bdfSopenharmony_ci}
40f08c3bdfSopenharmony_ci
41f08c3bdfSopenharmony_cistatic int xor(int x, int y)
42f08c3bdfSopenharmony_ci{
43f08c3bdfSopenharmony_ci	return x ^ y;
44f08c3bdfSopenharmony_ci}
45f08c3bdfSopenharmony_ci
46f08c3bdfSopenharmony_cistatic unsigned int uxor(unsigned int x, unsigned int y)
47f08c3bdfSopenharmony_ci{
48f08c3bdfSopenharmony_ci	return x ^ y;
49f08c3bdfSopenharmony_ci}
50f08c3bdfSopenharmony_ci
51f08c3bdfSopenharmony_cistatic int not(int x)
52f08c3bdfSopenharmony_ci{
53f08c3bdfSopenharmony_ci	return ~x;
54f08c3bdfSopenharmony_ci}
55f08c3bdfSopenharmony_ci
56f08c3bdfSopenharmony_cistatic unsigned int unot(unsigned int x)
57f08c3bdfSopenharmony_ci{
58f08c3bdfSopenharmony_ci	return ~x;
59f08c3bdfSopenharmony_ci}
60f08c3bdfSopenharmony_ci
61f08c3bdfSopenharmony_ci/*
62f08c3bdfSopenharmony_ci * check-name: Bitwise operator code generation
63f08c3bdfSopenharmony_ci * check-command: sparsec -c $file -o tmp.o
64f08c3bdfSopenharmony_ci */
65