[opaque pointer type] Add textual IR support for explicit type parameter to load...
[oota-llvm.git] / test / Transforms / ScalarRepl / memset-aggregate.ll
index 981ace61c1bb95c0f59f40e6bf3f2cbf806146c2..98e2dddefe7f2863c58080685ea5ca7b24aea59e 100644 (file)
@@ -16,7 +16,7 @@ entry:
        %tmp13 = bitcast %struct.foo* %P to i8*         ; <i8*> [#uses=1]
         call void @llvm.memcpy.p0i8.p0i8.i32(i8* %L2, i8* %tmp13, i32 8, i32 4, i1 false)
        %tmp4 = getelementptr %struct.foo, %struct.foo* %L, i32 0, i32 0                ; <i32*> [#uses=1]
-       %tmp5 = load i32* %tmp4         ; <i32> [#uses=1]
+       %tmp5 = load i32, i32* %tmp4            ; <i32> [#uses=1]
        ret i32 %tmp5
 }
 
@@ -27,7 +27,7 @@ entry:
        %L12 = bitcast [4 x %struct.foo]* %L to i8*             ; <i8*> [#uses=1]
         call void @llvm.memset.p0i8.i32(i8* %L12, i8 0, i32 32, i32 16, i1 false)
        %tmp4 = getelementptr [4 x %struct.foo], [4 x %struct.foo]* %L, i32 0, i32 0, i32 0             ; <i32*> [#uses=1]
-       %tmp5 = load i32* %tmp4         ; <i32> [#uses=1]
+       %tmp5 = load i32, i32* %tmp4            ; <i32> [#uses=1]
        ret i32 %tmp5
 }
 
@@ -42,7 +42,7 @@ entry:
        %tmp4 = getelementptr %struct.bar, %struct.bar* %B, i32 0, i32 2                ; <double*> [#uses=1]
        store double 1.000000e+01, double* %tmp4
        %tmp6 = getelementptr %struct.bar, %struct.bar* %B, i32 0, i32 0, i32 1         ; <i32*> [#uses=1]
-       %tmp7 = load i32* %tmp6         ; <i32> [#uses=1]
+       %tmp7 = load i32, i32* %tmp6            ; <i32> [#uses=1]
        ret i32 %tmp7
 }
 
@@ -58,7 +58,7 @@ entry:
        %2 = bitcast i32* %1 to i8*             ; <i8*> [#uses=1]
        call void @llvm.memset.p0i8.i32(i8* %2, i8 2, i32 12, i32 4, i1 false)
        %3 = getelementptr %struct.f, %struct.f* %A, i32 0, i32 2               ; <i32*> [#uses=1]
-       %4 = load i32* %3, align 8              ; <i32> [#uses=1]
+       %4 = load i32, i32* %3, align 8         ; <i32> [#uses=1]
        %retval12 = trunc i32 %4 to i16         ; <i16> [#uses=1]
        ret i16 %retval12
 }