blob: f301e66be5aff1c82b5c983af809889e23025d8c [file] [log] [blame]
Chris Lattnere4ae94c2002-11-17 21:06:13 +00001
2void %test(sbyte* %P, short* %P, int* %P) {
3 %V = load sbyte* %P
4 store sbyte %V, sbyte* %P
5
6 %V = load short* %P
7 store short %V, short* %P
8
9 %V = load int* %P
10 store int %V, int* %P
11 ret void
12}
Chris Lattner9f1bd802002-12-04 17:15:07 +000013
Brian Gaekeed6902c2002-12-13 09:28:50 +000014int %main() {
Chris Lattner9f1bd802002-12-04 17:15:07 +000015 %A = alloca sbyte
16 %B = alloca short
17 %C = alloca int
18 call void %test(sbyte* %A, short* %B, int* %C)
Brian Gaekeed6902c2002-12-13 09:28:50 +000019 ret int 0
Chris Lattner9f1bd802002-12-04 17:15:07 +000020}