X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FX86%2F2009-04-14-IllegalRegs.ll;h=8055ea880795d1b19806b5db4a7e641a6e8a4505;hb=bc3868a11d27c8b9f8dee28902ee04ddf0522f05;hp=0d66f6984fe22a0bbd4f2ec940d1fb1df5a8fc72;hpb=2e9d5f912a9841d3685ba0241abe1131943fed29;p=oota-llvm.git diff --git a/test/CodeGen/X86/2009-04-14-IllegalRegs.ll b/test/CodeGen/X86/2009-04-14-IllegalRegs.ll index 0d66f6984fe..8055ea88079 100644 --- a/test/CodeGen/X86/2009-04-14-IllegalRegs.ll +++ b/test/CodeGen/X86/2009-04-14-IllegalRegs.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin -O0 -regalloc=local | not grep sil +; RUN: llc < %s -mtriple=i386-apple-darwin -O0 -regalloc=fast | not grep sil ; rdar://6787136 %struct.X = type { i8, [32 x i8] } @@ -10,25 +10,25 @@ entry: %xxx = alloca %struct.X ; <%struct.X*> [#uses=6] %0 = alloca i32 ; [#uses=2] %"alloca point" = bitcast i32 0 to 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 ; [#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 ; [#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 ; [#uses=1] - %5 = load i8* %4, align 1 ; [#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 ; [#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 ; [#uses=1] + %5 = load i8, i8* %4, align 1 ; [#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 ; [#uses=1] store i8 %5, i8* %7, align 1 - %8 = getelementptr %struct.X* %xxx, i32 0, i32 0 ; [#uses=1] + %8 = getelementptr %struct.X, %struct.X* %xxx, i32 0, i32 0 ; [#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 ; [#uses=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 ; [#uses=1] store i32 %9, i32* %0, align 4 - %10 = load i32* %0, align 4 ; [#uses=1] + %10 = load i32, i32* %0, align 4 ; [#uses=1] store i32 %10, i32* %retval, align 4 br label %return return: ; preds = %entry - %retval1 = load i32* %retval ; [#uses=1] + %retval1 = load i32, i32* %retval ; [#uses=1] ret i32 %retval1 }