New test.
[oota-llvm.git] / test / ExecutionEngine / test-loadstore.ll
index 1685c78142fffce1bbfa790f63cda5c011207a7f..8a4b7933d18b7ce6c9f8ca34883eda36eb24238d 100644 (file)
@@ -1,5 +1,8 @@
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
+; RUN: lli %t.bc > /dev/null
 
-void %test(sbyte* %P, short* %P, int* %P) {
+
+void %test(sbyte* %P, short* %P, int* %P, long* %P) {
        %V = load sbyte* %P
        store sbyte %V, sbyte* %P
 
@@ -8,6 +11,10 @@ void %test(sbyte* %P, short* %P, int* %P) {
 
        %V = load int* %P
        store int %V, int* %P
+
+       %V = load long* %P
+       store long %V, long* %P
+
        ret void
 }
 
@@ -22,7 +29,8 @@ int %main() {
        %A = alloca sbyte
        %B = alloca short
        %C = alloca int
-       call void %test(sbyte* %A, short* %B, int* %C)
+       %D = alloca long
+       call void %test(sbyte* %A, short* %B, int* %C, long* %D)
        call uint %varalloca(uint 7)
 
        ret int 0