diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/stack-protector.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/stack-protector.ll | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/llvm/test/CodeGen/X86/stack-protector.ll b/llvm/test/CodeGen/X86/stack-protector.ll index 45984319e1d..eab5efef602 100644 --- a/llvm/test/CodeGen/X86/stack-protector.ll +++ b/llvm/test/CodeGen/X86/stack-protector.ll @@ -44,7 +44,7 @@ entry: %buf = alloca [16 x i8], align 16 store i8* %a, i8** %a.addr, align 8 %arraydecay = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %arraydecay1 = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) @@ -80,7 +80,7 @@ entry: %buf = alloca [16 x i8], align 16 store i8* %a, i8** %a.addr, align 8 %arraydecay = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %arraydecay1 = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) @@ -112,7 +112,7 @@ entry: %buf = alloca [16 x i8], align 16 store i8* %a, i8** %a.addr, align 8 %arraydecay = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %arraydecay1 = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) @@ -144,7 +144,7 @@ entry: %buf = alloca [16 x i8], align 16 store i8* %a, i8** %a.addr, align 8 %arraydecay = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %arraydecay1 = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) @@ -176,7 +176,7 @@ entry: store i8* %a, i8** %a.addr, align 8 %buf = getelementptr inbounds %struct.foo, %struct.foo* %b, i32 0, i32 0 %arraydecay = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %buf1 = getelementptr inbounds %struct.foo, %struct.foo* %b, i32 0, i32 0 %arraydecay2 = getelementptr inbounds [16 x i8], [16 x i8]* %buf1, i32 0, i32 0 @@ -210,7 +210,7 @@ entry: store i8* %a, i8** %a.addr, align 8 %buf = getelementptr inbounds %struct.foo, %struct.foo* %b, i32 0, i32 0 %arraydecay = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %buf1 = getelementptr inbounds %struct.foo, %struct.foo* %b, i32 0, i32 0 %arraydecay2 = getelementptr inbounds [16 x i8], [16 x i8]* %buf1, i32 0, i32 0 @@ -244,7 +244,7 @@ entry: store i8* %a, i8** %a.addr, align 8 %buf = getelementptr inbounds %struct.foo, %struct.foo* %b, i32 0, i32 0 %arraydecay = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %buf1 = getelementptr inbounds %struct.foo, %struct.foo* %b, i32 0, i32 0 %arraydecay2 = getelementptr inbounds [16 x i8], [16 x i8]* %buf1, i32 0, i32 0 @@ -278,7 +278,7 @@ entry: store i8* %a, i8** %a.addr, align 8 %buf = getelementptr inbounds %struct.foo, %struct.foo* %b, i32 0, i32 0 %arraydecay = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %buf1 = getelementptr inbounds %struct.foo, %struct.foo* %b, i32 0, i32 0 %arraydecay2 = getelementptr inbounds [16 x i8], [16 x i8]* %buf1, i32 0, i32 0 @@ -310,7 +310,7 @@ entry: %buf = alloca [4 x i8], align 1 store i8* %a, i8** %a.addr, align 8 %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %arraydecay1 = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) @@ -342,7 +342,7 @@ entry: %buf = alloca [4 x i8], align 1 store i8* %a, i8** %a.addr, align 8 %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %arraydecay1 = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) @@ -374,7 +374,7 @@ entry: %buf = alloca [4 x i8], align 1 store i8* %a, i8** %a.addr, align 8 %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %arraydecay1 = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) @@ -406,7 +406,7 @@ entry: %buf = alloca [4 x i8], align 1 store i8* %a, i8** %a.addr, align 8 %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %arraydecay1 = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) @@ -438,7 +438,7 @@ entry: store i8* %a, i8** %a.addr, align 8 %buf = getelementptr inbounds %struct.foo.0, %struct.foo.0* %b, i32 0, i32 0 %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %buf1 = getelementptr inbounds %struct.foo.0, %struct.foo.0* %b, i32 0, i32 0 %arraydecay2 = getelementptr inbounds [4 x i8], [4 x i8]* %buf1, i32 0, i32 0 @@ -472,7 +472,7 @@ entry: store i8* %a, i8** %a.addr, align 8 %buf = getelementptr inbounds %struct.foo.0, %struct.foo.0* %b, i32 0, i32 0 %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %buf1 = getelementptr inbounds %struct.foo.0, %struct.foo.0* %b, i32 0, i32 0 %arraydecay2 = getelementptr inbounds [4 x i8], [4 x i8]* %buf1, i32 0, i32 0 @@ -506,7 +506,7 @@ entry: store i8* %a, i8** %a.addr, align 8 %buf = getelementptr inbounds %struct.foo.0, %struct.foo.0* %b, i32 0, i32 0 %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %buf1 = getelementptr inbounds %struct.foo.0, %struct.foo.0* %b, i32 0, i32 0 %arraydecay2 = getelementptr inbounds [4 x i8], [4 x i8]* %buf1, i32 0, i32 0 @@ -540,7 +540,7 @@ entry: store i8* %a, i8** %a.addr, align 8 %buf = getelementptr inbounds %struct.foo.0, %struct.foo.0* %b, i32 0, i32 0 %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) %buf1 = getelementptr inbounds %struct.foo.0, %struct.foo.0* %b, i32 0, i32 0 %arraydecay2 = getelementptr inbounds [4 x i8], [4 x i8]* %buf1, i32 0, i32 0 @@ -570,7 +570,7 @@ entry: ; DARWIN-X64: .cfi_endproc %a.addr = alloca i8*, align 8 store i8* %a, i8** %a.addr, align 8 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %0) ret void } @@ -598,7 +598,7 @@ entry: ; DARWIN-X64: .cfi_endproc %a.addr = alloca i8*, align 8 store i8* %a, i8** %a.addr, align 8 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %0) ret void } @@ -626,7 +626,7 @@ entry: ; DARWIN-X64: .cfi_endproc %a.addr = alloca i8*, align 8 store i8* %a, i8** %a.addr, align 8 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %0) ret void } @@ -654,7 +654,7 @@ entry: ; DARWIN-X64: callq ___stack_chk_fail %a.addr = alloca i8*, align 8 store i8* %a, i8** %a.addr, align 8 - %0 = load i8** %a.addr, align 8 + %0 = load i8*, i8** %a.addr, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %0) ret void } @@ -683,7 +683,7 @@ entry: %a = alloca i32, align 4 %j = alloca i32*, align 8 store i32 0, i32* %retval - %0 = load i32* %a, align 4 + %0 = load i32, i32* %a, align 4 %add = add nsw i32 %0, 1 store i32 %add, i32* %a, align 4 store i32* %a, i32** %j, align 8 @@ -715,7 +715,7 @@ entry: %a = alloca i32, align 4 %j = alloca i32*, align 8 store i32 0, i32* %retval - %0 = load i32* %a, align 4 + %0 = load i32, i32* %a, align 4 %add = add nsw i32 %0, 1 store i32 %add, i32* %a, align 4 store i32* %a, i32** %j, align 8 @@ -747,7 +747,7 @@ entry: %a = alloca i32, align 4 %j = alloca i32*, align 8 store i32 0, i32* %retval - %0 = load i32* %a, align 4 + %0 = load i32, i32* %a, align 4 %add = add nsw i32 %0, 1 store i32 %add, i32* %a, align 4 store i32* %a, i32** %j, align 8 @@ -779,7 +779,7 @@ entry: %a = alloca i32, align 4 %j = alloca i32*, align 8 store i32 0, i32* %retval - %0 = load i32* %a, align 4 + %0 = load i32, i32* %a, align 4 %add = add nsw i32 %0, 1 store i32 %add, i32* %a, align 4 store i32* %a, i32** %j, align 8 @@ -1318,7 +1318,7 @@ entry: %b = alloca i32*, align 8 %y = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 1 store i32* %y, i32** %b, align 8 - %0 = load i32** %b, align 8 + %0 = load i32*, i32** %b, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32* %0) ret void } @@ -1348,7 +1348,7 @@ entry: %b = alloca i32*, align 8 %y = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 1 store i32* %y, i32** %b, align 8 - %0 = load i32** %b, align 8 + %0 = load i32*, i32** %b, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32* %0) ret void } @@ -1378,7 +1378,7 @@ entry: %b = alloca i32*, align 8 %y = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 1 store i32* %y, i32** %b, align 8 - %0 = load i32** %b, align 8 + %0 = load i32*, i32** %b, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32* %0) ret void } @@ -1408,7 +1408,7 @@ entry: %b = alloca i32*, align 8 %y = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 1 store i32* %y, i32** %b, align 8 - %0 = load i32** %b, align 8 + %0 = load i32*, i32** %b, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32* %0) ret void } @@ -1767,7 +1767,7 @@ entry: store i32 0, i32* %a, align 4 %0 = bitcast i32* %a to float* store float* %0, float** %b, align 8 - %1 = load float** %b, align 8 + %1 = load float*, float** %b, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), float* %1) ret void } @@ -1799,7 +1799,7 @@ entry: store i32 0, i32* %a, align 4 %0 = bitcast i32* %a to float* store float* %0, float** %b, align 8 - %1 = load float** %b, align 8 + %1 = load float*, float** %b, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), float* %1) ret void } @@ -1831,7 +1831,7 @@ entry: store i32 0, i32* %a, align 4 %0 = bitcast i32* %a to float* store float* %0, float** %b, align 8 - %1 = load float** %b, align 8 + %1 = load float*, float** %b, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), float* %1) ret void } @@ -1863,7 +1863,7 @@ entry: store i32 0, i32* %a, align 4 %0 = bitcast i32* %a to float* store float* %0, float** %b, align 8 - %1 = load float** %b, align 8 + %1 = load float*, float** %b, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), float* %1) ret void } @@ -2428,7 +2428,7 @@ entry: %call = call i32* @getp() store i32* %call, i32** %a, align 8 store i32** %a, i32*** %b, align 8 - %0 = load i32*** %b, align 8 + %0 = load i32**, i32*** %b, align 8 call void @funcall2(i32** %0) ret void } @@ -2459,7 +2459,7 @@ entry: %call = call i32* @getp() store i32* %call, i32** %a, align 8 store i32** %a, i32*** %b, align 8 - %0 = load i32*** %b, align 8 + %0 = load i32**, i32*** %b, align 8 call void @funcall2(i32** %0) ret void } @@ -2490,7 +2490,7 @@ entry: %call = call i32* @getp() store i32* %call, i32** %a, align 8 store i32** %a, i32*** %b, align 8 - %0 = load i32*** %b, align 8 + %0 = load i32**, i32*** %b, align 8 call void @funcall2(i32** %0) ret void } @@ -2521,7 +2521,7 @@ entry: %call = call i32* @getp() store i32* %call, i32** %a, align 8 store i32** %a, i32*** %b, align 8 - %0 = load i32*** %b, align 8 + %0 = load i32**, i32*** %b, align 8 call void @funcall2(i32** %0) ret void } @@ -2552,7 +2552,7 @@ entry: store i32* %call, i32** %a, align 8 %0 = bitcast i32** %a to float** store float** %0, float*** %b, align 8 - %1 = load float*** %b, align 8 + %1 = load float**, float*** %b, align 8 call void @funfloat2(float** %1) ret void } @@ -2584,7 +2584,7 @@ entry: store i32* %call, i32** %a, align 8 %0 = bitcast i32** %a to float** store float** %0, float*** %b, align 8 - %1 = load float*** %b, align 8 + %1 = load float**, float*** %b, align 8 call void @funfloat2(float** %1) ret void } @@ -2616,7 +2616,7 @@ entry: store i32* %call, i32** %a, align 8 %0 = bitcast i32** %a to float** store float** %0, float*** %b, align 8 - %1 = load float*** %b, align 8 + %1 = load float**, float*** %b, align 8 call void @funfloat2(float** %1) ret void } @@ -2648,7 +2648,7 @@ entry: store i32* %call, i32** %a, align 8 %0 = bitcast i32** %a to float** store float** %0, float*** %b, align 8 - %1 = load float*** %b, align 8 + %1 = load float**, float*** %b, align 8 call void @funfloat2(float** %1) ret void } @@ -2676,7 +2676,7 @@ entry: %a = alloca %class.A, align 1 %array = getelementptr inbounds %class.A, %class.A* %a, i32 0, i32 0 %arrayidx = getelementptr inbounds [2 x i8], [2 x i8]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, align 1 + %0 = load i8, i8* %arrayidx, align 1 ret i8 %0 } @@ -2704,7 +2704,7 @@ entry: %a = alloca %class.A, align 1 %array = getelementptr inbounds %class.A, %class.A* %a, i32 0, i32 0 %arrayidx = getelementptr inbounds [2 x i8], [2 x i8]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, align 1 + %0 = load i8, i8* %arrayidx, align 1 ret i8 %0 } @@ -2732,7 +2732,7 @@ entry: %a = alloca %class.A, align 1 %array = getelementptr inbounds %class.A, %class.A* %a, i32 0, i32 0 %arrayidx = getelementptr inbounds [2 x i8], [2 x i8]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, align 1 + %0 = load i8, i8* %arrayidx, align 1 ret i8 %0 } @@ -2760,7 +2760,7 @@ entry: %a = alloca %class.A, align 1 %array = getelementptr inbounds %class.A, %class.A* %a, i32 0, i32 0 %arrayidx = getelementptr inbounds [2 x i8], [2 x i8]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, align 1 + %0 = load i8, i8* %arrayidx, align 1 ret i8 %0 } @@ -2791,7 +2791,7 @@ entry: %e = getelementptr inbounds %struct.anon.0, %struct.anon.0* %d, i32 0, i32 0 %array = bitcast %union.anon.1* %e to [2 x i8]* %arrayidx = getelementptr inbounds [2 x i8], [2 x i8]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, align 1 + %0 = load i8, i8* %arrayidx, align 1 ret i8 %0 } @@ -2823,7 +2823,7 @@ entry: %e = getelementptr inbounds %struct.anon.0, %struct.anon.0* %d, i32 0, i32 0 %array = bitcast %union.anon.1* %e to [2 x i8]* %arrayidx = getelementptr inbounds [2 x i8], [2 x i8]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, align 1 + %0 = load i8, i8* %arrayidx, align 1 ret i8 %0 } @@ -2855,7 +2855,7 @@ entry: %e = getelementptr inbounds %struct.anon.0, %struct.anon.0* %d, i32 0, i32 0 %array = bitcast %union.anon.1* %e to [2 x i8]* %arrayidx = getelementptr inbounds [2 x i8], [2 x i8]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, align 1 + %0 = load i8, i8* %arrayidx, align 1 ret i8 %0 } @@ -2887,7 +2887,7 @@ entry: %e = getelementptr inbounds %struct.anon.0, %struct.anon.0* %d, i32 0, i32 0 %array = bitcast %union.anon.1* %e to [2 x i8]* %arrayidx = getelementptr inbounds [2 x i8], [2 x i8]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, align 1 + %0 = load i8, i8* %arrayidx, align 1 ret i8 %0 } @@ -2914,7 +2914,7 @@ entry: %n.addr = alloca i32, align 4 %a = alloca i32*, align 8 store i32 %n, i32* %n.addr, align 4 - %0 = load i32* %n.addr, align 4 + %0 = load i32, i32* %n.addr, align 4 %conv = sext i32 %0 to i64 %1 = alloca i8, i64 %conv %2 = bitcast i8* %1 to i32* @@ -2946,7 +2946,7 @@ entry: %n.addr = alloca i32, align 4 %a = alloca i32*, align 8 store i32 %n, i32* %n.addr, align 4 - %0 = load i32* %n.addr, align 4 + %0 = load i32, i32* %n.addr, align 4 %conv = sext i32 %0 to i64 %1 = alloca i8, i64 %conv %2 = bitcast i8* %1 to i32* @@ -2978,7 +2978,7 @@ entry: %n.addr = alloca i32, align 4 %a = alloca i32*, align 8 store i32 %n, i32* %n.addr, align 4 - %0 = load i32* %n.addr, align 4 + %0 = load i32, i32* %n.addr, align 4 %conv = sext i32 %0 to i64 %1 = alloca i8, i64 %conv %2 = bitcast i8* %1 to i32* @@ -3010,7 +3010,7 @@ entry: %n.addr = alloca i32, align 4 %a = alloca i32*, align 8 store i32 %n, i32* %n.addr, align 4 - %0 = load i32* %n.addr, align 4 + %0 = load i32, i32* %n.addr, align 4 %conv = sext i32 %0 to i64 %1 = alloca i8, i64 %conv %2 = bitcast i8* %1 to i32* @@ -3040,7 +3040,7 @@ entry: ; DARWIN-X64: .cfi_endproc %a = alloca [4 x i32], align 16 %arrayidx = getelementptr inbounds [4 x i32], [4 x i32]* %a, i32 0, i64 0 - %0 = load i32* %arrayidx, align 4 + %0 = load i32, i32* %arrayidx, align 4 ret i32 %0 } @@ -3067,7 +3067,7 @@ entry: ; DARWIN-X64: callq ___stack_chk_fail %a = alloca [4 x i32], align 16 %arrayidx = getelementptr inbounds [4 x i32], [4 x i32]* %a, i32 0, i64 0 - %0 = load i32* %arrayidx, align 4 + %0 = load i32, i32* %arrayidx, align 4 ret i32 %0 } @@ -3094,7 +3094,7 @@ entry: ; DARWIN-X64: callq ___stack_chk_fail %a = alloca [4 x i32], align 16 %arrayidx = getelementptr inbounds [4 x i32], [4 x i32]* %a, i32 0, i64 0 - %0 = load i32* %arrayidx, align 4 + %0 = load i32, i32* %arrayidx, align 4 ret i32 %0 } @@ -3121,7 +3121,7 @@ entry: ; DARWIN-X64: callq ___stack_chk_fail %a = alloca [4 x i32], align 16 %arrayidx = getelementptr inbounds [4 x i32], [4 x i32]* %a, i32 0, i64 0 - %0 = load i32* %arrayidx, align 4 + %0 = load i32, i32* %arrayidx, align 4 ret i32 %0 } @@ -3151,7 +3151,7 @@ entry: %c = alloca %struct.nest, align 4 %b = getelementptr inbounds %struct.nest, %struct.nest* %c, i32 0, i32 1 %_a = getelementptr inbounds %struct.pair, %struct.pair* %b, i32 0, i32 0 - %0 = load i32* %_a, align 4 + %0 = load i32, i32* %_a, align 4 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32 %0) ret void } @@ -3182,7 +3182,7 @@ bb: ; DARWIN-X64: callq ___stack_chk_fail %tmp = alloca %struct.small*, align 8 %tmp1 = call i32 (...)* @dummy(%struct.small** %tmp) - %tmp2 = load %struct.small** %tmp, align 8 + %tmp2 = load %struct.small*, %struct.small** %tmp, align 8 %tmp3 = ptrtoint %struct.small* %tmp2 to i64 %tmp4 = trunc i64 %tmp3 to i32 %tmp5 = icmp sgt i32 %tmp4, 0 @@ -3193,7 +3193,7 @@ bb6: ; preds = %bb17, %bb %tmp8 = phi i64 [ %tmp20, %bb17 ], [ 1, %bb ] %tmp9 = phi i32 [ %tmp14, %bb17 ], [ %tmp1, %bb ] %tmp10 = getelementptr inbounds %struct.small, %struct.small* %tmp7, i64 0, i32 0 - %tmp11 = load i8* %tmp10, align 1 + %tmp11 = load i8, i8* %tmp10, align 1 %tmp12 = icmp eq i8 %tmp11, 1 %tmp13 = add nsw i32 %tmp9, 8 %tmp14 = select i1 %tmp12, i32 %tmp13, i32 %tmp9 @@ -3203,7 +3203,7 @@ bb6: ; preds = %bb17, %bb bb17: ; preds = %bb6 %tmp18 = getelementptr inbounds %struct.small*, %struct.small** %tmp, i64 %tmp8 - %tmp19 = load %struct.small** %tmp18, align 8 + %tmp19 = load %struct.small*, %struct.small** %tmp18, align 8 %tmp20 = add i64 %tmp8, 1 br label %bb6 @@ -3344,9 +3344,9 @@ entry: %1 = bitcast %struct.small_char* %test to i8* call void @llvm.memcpy.p0i8.p0i8.i64(i8* %0, i8* %1, i64 12, i32 0, i1 false) %2 = getelementptr { i64, i8 }, { i64, i8 }* %test.coerce, i32 0, i32 0 - %3 = load i64* %2, align 1 + %3 = load i64, i64* %2, align 1 %4 = getelementptr { i64, i8 }, { i64, i8 }* %test.coerce, i32 0, i32 1 - %5 = load i8* %4, align 1 + %5 = load i8, i8* %4, align 1 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i64 %3, i8 %5) ret i32 %call } @@ -3378,9 +3378,9 @@ entry: %1 = bitcast %struct.small_char* %test to i8* call void @llvm.memcpy.p0i8.p0i8.i64(i8* %0, i8* %1, i64 12, i32 0, i1 false) %2 = getelementptr { i64, i8 }, { i64, i8 }* %test.coerce, i32 0, i32 0 - %3 = load i64* %2, align 1 + %3 = load i64, i64* %2, align 1 %4 = getelementptr { i64, i8 }, { i64, i8 }* %test.coerce, i32 0, i32 1 - %5 = load i8* %4, align 1 + %5 = load i8, i8* %4, align 1 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i64 %3, i8 %5) ret i32 %call } @@ -3409,7 +3409,7 @@ entry: %test = alloca i8*, align 8 %0 = alloca i8, i64 4 store i8* %0, i8** %test, align 8 - %1 = load i8** %test, align 8 + %1 = load i8*, i8** %test, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %1) ret i32 %call } @@ -3437,7 +3437,7 @@ entry: %test = alloca i8*, align 8 %0 = alloca i8, i64 5 store i8* %0, i8** %test, align 8 - %1 = load i8** %test, align 8 + %1 = load i8*, i8** %test, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %1) ret i32 %call } |