1short smask(short x)
2{
3	return x & (short) 0x7fff;
4}
5
6short umask(unsigned short x)
7{
8	return x & (unsigned short) 0x7fff;
9}
10
11/*
12 * check-name: and-trunc
13 * check-command: test-linearize -Wno-decl $file
14 *
15 * check-output-ignore
16 * check-output-excludes: sext\\.
17 * check-output-excludes: zext\\.
18 * check-output-excludes: trunc\\.
19 * check-output-contains: and\\.16
20 */
21