blob: cf26472336b9b85ba49272e7e1ba0994eaf05c74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#define W 3
#define S 8
#define M (W << S)
static inline int fun(unsigned int x, unsigned int y)
{
return ((x & M) | (y << S)) >> S;
}
short foo(unsigned int x, unsigned int y)
{
return fun(x, y) & W;
}
/*
* check-name: and-or-mask3s
* check-command: test-linearize -Wno-decl $file
* check-known-to-fail
*
* check-output-ignore
* check-output-pattern(1): lsr\\.
* check-output-pattern(1): or\\.
* check-output-pattern(1): and\\.
* check-output-excludes: shl\\.
*/
|