[opaque pointer type] Add textual IR support for explicit type parameter to getelemen...
[oota-llvm.git] / test / CodeGen / X86 / 2009-04-14-IllegalRegs.ll
index bed863e405a82d09006fcb311b7f620e32bfd7bc..24a159037400fb4853b89c9106dc0e4655df2fec 100644 (file)
@@ -10,16 +10,16 @@ entry:
        %xxx = alloca %struct.X         ; <%struct.X*> [#uses=6]
        %0 = alloca i32         ; <i32*> [#uses=2]
        %"alloca point" = bitcast i32 0 to i32          ; <i32> [#uses=0]
-       %1 = getelementptr %struct.X* %xxx, i32 0, i32 1                ; <[32 x i8]*> [#uses=1]
-       %2 = getelementptr [32 x i8]* %1, i32 0, i32 31         ; <i8*> [#uses=1]
+       %1 = getelementptr %struct.X, %struct.X* %xxx, i32 0, i32 1             ; <[32 x i8]*> [#uses=1]
+       %2 = getelementptr [32 x i8], [32 x i8]* %1, i32 0, i32 31              ; <i8*> [#uses=1]
        store i8 48, i8* %2, align 1
-       %3 = getelementptr %struct.X* %xxx, i32 0, i32 1                ; <[32 x i8]*> [#uses=1]
-       %4 = getelementptr [32 x i8]* %3, i32 0, i32 31         ; <i8*> [#uses=1]
+       %3 = getelementptr %struct.X, %struct.X* %xxx, i32 0, i32 1             ; <[32 x i8]*> [#uses=1]
+       %4 = getelementptr [32 x i8], [32 x i8]* %3, i32 0, i32 31              ; <i8*> [#uses=1]
        %5 = load i8* %4, align 1               ; <i8> [#uses=1]
-       %6 = getelementptr %struct.X* %xxx, i32 0, i32 1                ; <[32 x i8]*> [#uses=1]
-       %7 = getelementptr [32 x i8]* %6, i32 0, i32 0          ; <i8*> [#uses=1]
+       %6 = getelementptr %struct.X, %struct.X* %xxx, i32 0, i32 1             ; <[32 x i8]*> [#uses=1]
+       %7 = getelementptr [32 x i8], [32 x i8]* %6, i32 0, i32 0               ; <i8*> [#uses=1]
        store i8 %5, i8* %7, align 1
-       %8 = getelementptr %struct.X* %xxx, i32 0, i32 0                ; <i8*> [#uses=1]
+       %8 = getelementptr %struct.X, %struct.X* %xxx, i32 0, i32 0             ; <i8*> [#uses=1]
        store i8 15, i8* %8, align 1
        %9 = call i32 (...)* bitcast (i32 (%struct.X*, %struct.X*)* @f to i32 (...)*)(%struct.X* byval align 4 %xxx, %struct.X* byval align 4 %xxx) nounwind            ; <i32> [#uses=1]
        store i32 %9, i32* %0, align 4