aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExecutionEngine/test-loadstore.ll
blob: 936aa5f744348204c8d8ad6ee4707c4bb6b6a45d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

void %test(sbyte* %P, short* %P, int* %P) {
	%V = load sbyte* %P
	store sbyte %V, sbyte* %P

	%V = load short* %P
	store short %V, short* %P

	%V = load int* %P
	store int %V, int* %P
	ret void
}

void %main() {
	%A = alloca sbyte
	%B = alloca short
	%C = alloca int
	call void %test(sbyte* %A, short* %B, int* %C)
	ret void
}