aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/and-trunc.c
blob: bcb80bbe01df91a681677e529dfcf3f68e92ccf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
short smask(short x)
{
	return x & (short) 0x7fff;
}

short umask(unsigned short x)
{
	return x & (unsigned short) 0x7fff;
}

/*
 * check-name: and-trunc
 * check-command: test-linearize -Wno-decl $file
 * check-known-to-fail
 *
 * check-output-ignore
 * check-output-excludes: sext\\.
 * check-output-excludes: zext\\.
 * check-output-excludes: trunc\\.
 * check-output-contains: and\\.16
 */