blob: 4a099df2d9115cf95b36577f48a850ef42b856d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
unsigned lsr_or_and0(unsigned x, unsigned b)
{
return (((x & 0x00000fff) | b) >> 12);
}
unsigned shl_or_and0(unsigned x, unsigned b)
{
return (((x & 0xfff00000) | b) << 12);
}
/*
* check-name: sh-or-and0
* check-command: test-linearize -Wno-decl $file
* check-known-to-fail
*
* check-output-ignore
* check-output-pattern(1): lsr\\.
* check-output-pattern(1): shl\\.
* check-output-excludes: or\\.
* check-output-excludes: and\\.
*/
|