lsr_or_and2(unsigned x,unsigned b)1 unsigned lsr_or_and2(unsigned x, unsigned b)
2 {
3 return (((x & 0xf0ffffff) | b) >> 12);
4 }
5
shl_or_and2(unsigned x,unsigned b)6 unsigned shl_or_and2(unsigned x, unsigned b)
7 {
8 return (((x & 0xffffff0f) | b) << 12);
9 }
10
11 /*
12 * check-name: sh-or-and2
13 * check-command: test-linearize -Wno-decl $file
14 *
15 * check-output-ignore
16 * check-output-pattern(1): lsr\\.
17 * check-output-pattern(1): shl\\.
18 * check-output-pattern(2): or\\.
19 * check-output-pattern(1): and\\..*\\$0xf0fff000
20 * check-output-pattern(1): and\\..*\\$0xfff0f
21 */
22