lsrasr0(unsigned int x)1 int lsrasr0(unsigned int x)
2 {
3 	return ((int) (x >> 15)) >> 15;
4 }
5 
lsrasr1(unsigned int x)6 int lsrasr1(unsigned int x)
7 {
8 	return ((int) (x >> 16)) >> 15;
9 }
10 
lsrasr2(unsigned int x)11 int lsrasr2(unsigned int x)
12 {
13 	return ((int) (x >> 16)) >> 16;
14 }
15 
16 /*
17  * check-name: lsr-asr
18  * check-command: test-linearize -Wno-decl $file
19  *
20  * check-output-start
21 lsrasr0:
22 .L0:
23 	<entry-point>
24 	lsr.32      %r3 <- %arg1, $30
25 	ret.32      %r3
26 
27 
28 lsrasr1:
29 .L2:
30 	<entry-point>
31 	lsr.32      %r7 <- %arg1, $31
32 	ret.32      %r7
33 
34 
35 lsrasr2:
36 .L4:
37 	<entry-point>
38 	ret.32      $0
39 
40 
41  * check-output-end
42  */
43