1 unsigned lsr_or_and0(unsigned x, unsigned b) 2 { 3 return (((x & 0x00000fff) | b) >> 12); 4 } 5 6 unsigned shl_or_and0(unsigned x, unsigned b) 7 { 8 return (((x & 0xfff00000) | b) << 12); 9 } 10 11 /* 12 * check-name: sh-or-and0 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-excludes: or\\. 19 * check-output-excludes: and\\. 20 */