aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/shift-big.c
blob: 3249854e246896daad401c41d65c04ee14714754 (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
typedef unsigned int u32;
typedef          int s32;

static u32 lsr32(u32 a) { return a >> 32; }
static s32 asr32(s32 a) { return a >> 32; }

/*
 * check-name: optim/shift-big.c
 * check-command: test-linearize -fnormalize-pseudos $file
 *
 * check-error-ignore
 * check-output-start
lsr32:
.L0:
	<entry-point>
	ret.32      $0


asr32:
.L2:
	<entry-point>
	asr.32      %r5 <- %arg1, $32
	ret.32      %r5


 * check-output-end
 */