blob: fdcf470f0825faf2b2227e4e145c333c7803ddbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
typedef unsigned short u16;
typedef short s16;
typedef unsigned int u32;
typedef int s32;
u32 ufoo(u32 x)
{
u16 i = ((u16)x) & 0x7fffU;
return i;
}
u32 sfoo(u32 x)
{
s16 i = ((s16)x) & 0x7fff;
return i;
}
/*
* check-name: and-extend
* check-command: test-linearize -Wno-decl $file
* check-known-to-fail
*
* check-output-ignore
* check-output-excludes: trunc\\.
* check-output-excludes: zext\\.
* check-output-excludes: sext\\.
* check-output-contains: and\\.32.*0x7fff
*/
|