blob: aee469404a65ac185f9aa54bc7cb3f1b88d3b73c (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
int lsrasr0(unsigned int x)
{
return ((int) (x >> 15)) >> 15;
}
int lsrasr1(unsigned int x)
{
return ((int) (x >> 16)) >> 15;
}
int lsrasr2(unsigned int x)
{
return ((int) (x >> 16)) >> 16;
}
/*
* check-name: lsr-asr
* check-command: test-linearize -Wno-decl $file
*
* check-output-start
lsrasr0:
.L0:
<entry-point>
lsr.32 %r3 <- %arg1, $30
ret.32 %r3
lsrasr1:
.L2:
<entry-point>
lsr.32 %r7 <- %arg1, $31
ret.32 %r7
lsrasr2:
.L4:
<entry-point>
ret.32 $0
* check-output-end
*/
|