diff options
Diffstat (limited to 'test/CodeGen/X86/stack-protector.ll')
-rw-r--r-- | test/CodeGen/X86/stack-protector.ll | 502 |
1 files changed, 251 insertions, 251 deletions
diff --git a/test/CodeGen/X86/stack-protector.ll b/test/CodeGen/X86/stack-protector.ll index 4db0f9a..a88acf0 100644 --- a/test/CodeGen/X86/stack-protector.ll +++ b/test/CodeGen/X86/stack-protector.ll @@ -43,11 +43,11 @@ entry: %a.addr = alloca i8*, align 8 %buf = alloca [16 x i8], align 16 store i8* %a, i8** %a.addr, align 8 - %arraydecay = getelementptr inbounds [16 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %arraydecay = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %arraydecay1 = getelementptr inbounds [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) + %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], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) ret void } @@ -79,11 +79,11 @@ entry: %a.addr = alloca i8*, align 8 %buf = alloca [16 x i8], align 16 store i8* %a, i8** %a.addr, align 8 - %arraydecay = getelementptr inbounds [16 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %arraydecay = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %arraydecay1 = getelementptr inbounds [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) + %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], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) ret void } @@ -111,11 +111,11 @@ entry: %a.addr = alloca i8*, align 8 %buf = alloca [16 x i8], align 16 store i8* %a, i8** %a.addr, align 8 - %arraydecay = getelementptr inbounds [16 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %arraydecay = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %arraydecay1 = getelementptr inbounds [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) + %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], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) ret void } @@ -143,11 +143,11 @@ entry: %a.addr = alloca i8*, align 8 %buf = alloca [16 x i8], align 16 store i8* %a, i8** %a.addr, align 8 - %arraydecay = getelementptr inbounds [16 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %arraydecay = getelementptr inbounds [16 x i8], [16 x i8]* %buf, i32 0, i32 0 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %arraydecay1 = getelementptr inbounds [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) + %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], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) ret void } @@ -174,13 +174,13 @@ entry: %a.addr = alloca i8*, align 8 %b = alloca %struct.foo, align 1 store i8* %a, i8** %a.addr, align 8 - %buf = getelementptr inbounds %struct.foo* %b, i32 0, i32 0 - %arraydecay = getelementptr inbounds [16 x i8]* %buf, i32 0, i32 0 - %0 = load 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*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %buf1 = getelementptr inbounds %struct.foo* %b, i32 0, i32 0 - %arraydecay2 = getelementptr inbounds [16 x i8]* %buf1, i32 0, i32 0 - %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) + %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 + %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) ret void } @@ -208,13 +208,13 @@ entry: %a.addr = alloca i8*, align 8 %b = alloca %struct.foo, align 1 store i8* %a, i8** %a.addr, align 8 - %buf = getelementptr inbounds %struct.foo* %b, i32 0, i32 0 - %arraydecay = getelementptr inbounds [16 x i8]* %buf, i32 0, i32 0 - %0 = load 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*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %buf1 = getelementptr inbounds %struct.foo* %b, i32 0, i32 0 - %arraydecay2 = getelementptr inbounds [16 x i8]* %buf1, i32 0, i32 0 - %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) + %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 + %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) ret void } @@ -242,13 +242,13 @@ entry: %a.addr = alloca i8*, align 8 %b = alloca %struct.foo, align 1 store i8* %a, i8** %a.addr, align 8 - %buf = getelementptr inbounds %struct.foo* %b, i32 0, i32 0 - %arraydecay = getelementptr inbounds [16 x i8]* %buf, i32 0, i32 0 - %0 = load 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*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %buf1 = getelementptr inbounds %struct.foo* %b, i32 0, i32 0 - %arraydecay2 = getelementptr inbounds [16 x i8]* %buf1, i32 0, i32 0 - %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) + %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 + %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) ret void } @@ -276,13 +276,13 @@ entry: %a.addr = alloca i8*, align 8 %b = alloca %struct.foo, align 1 store i8* %a, i8** %a.addr, align 8 - %buf = getelementptr inbounds %struct.foo* %b, i32 0, i32 0 - %arraydecay = getelementptr inbounds [16 x i8]* %buf, i32 0, i32 0 - %0 = load 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*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %buf1 = getelementptr inbounds %struct.foo* %b, i32 0, i32 0 - %arraydecay2 = getelementptr inbounds [16 x i8]* %buf1, i32 0, i32 0 - %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) + %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 + %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) ret void } @@ -309,11 +309,11 @@ entry: %a.addr = alloca i8*, align 8 %buf = alloca [4 x i8], align 1 store i8* %a, i8** %a.addr, align 8 - %arraydecay = getelementptr inbounds [4 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %arraydecay1 = getelementptr inbounds [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) + %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], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) ret void } @@ -341,11 +341,11 @@ entry: %a.addr = alloca i8*, align 8 %buf = alloca [4 x i8], align 1 store i8* %a, i8** %a.addr, align 8 - %arraydecay = getelementptr inbounds [4 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %arraydecay1 = getelementptr inbounds [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) + %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], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) ret void } @@ -373,11 +373,11 @@ entry: %a.addr = alloca i8*, align 8 %buf = alloca [4 x i8], align 1 store i8* %a, i8** %a.addr, align 8 - %arraydecay = getelementptr inbounds [4 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %arraydecay1 = getelementptr inbounds [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) + %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], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) ret void } @@ -405,11 +405,11 @@ entry: %a.addr = alloca i8*, align 8 %buf = alloca [4 x i8], align 1 store i8* %a, i8** %a.addr, align 8 - %arraydecay = getelementptr inbounds [4 x i8]* %buf, i32 0, i32 0 - %0 = load i8** %a.addr, align 8 + %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %buf, i32 0, i32 0 + %0 = load i8*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %arraydecay1 = getelementptr inbounds [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) + %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], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay1) ret void } @@ -436,13 +436,13 @@ entry: %a.addr = alloca i8*, align 8 %b = alloca %struct.foo.0, align 1 store i8* %a, i8** %a.addr, align 8 - %buf = getelementptr inbounds %struct.foo.0* %b, i32 0, i32 0 - %arraydecay = getelementptr inbounds [4 x i8]* %buf, i32 0, i32 0 - %0 = load 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*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %buf1 = getelementptr inbounds %struct.foo.0* %b, i32 0, i32 0 - %arraydecay2 = getelementptr inbounds [4 x i8]* %buf1, i32 0, i32 0 - %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) + %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 + %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) ret void } @@ -470,13 +470,13 @@ entry: %a.addr = alloca i8*, align 8 %b = alloca %struct.foo.0, align 1 store i8* %a, i8** %a.addr, align 8 - %buf = getelementptr inbounds %struct.foo.0* %b, i32 0, i32 0 - %arraydecay = getelementptr inbounds [4 x i8]* %buf, i32 0, i32 0 - %0 = load 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*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %buf1 = getelementptr inbounds %struct.foo.0* %b, i32 0, i32 0 - %arraydecay2 = getelementptr inbounds [4 x i8]* %buf1, i32 0, i32 0 - %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) + %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 + %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) ret void } @@ -504,13 +504,13 @@ entry: %a.addr = alloca i8*, align 8 %b = alloca %struct.foo.0, align 1 store i8* %a, i8** %a.addr, align 8 - %buf = getelementptr inbounds %struct.foo.0* %b, i32 0, i32 0 - %arraydecay = getelementptr inbounds [4 x i8]* %buf, i32 0, i32 0 - %0 = load 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*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %buf1 = getelementptr inbounds %struct.foo.0* %b, i32 0, i32 0 - %arraydecay2 = getelementptr inbounds [4 x i8]* %buf1, i32 0, i32 0 - %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) + %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 + %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) ret void } @@ -538,13 +538,13 @@ entry: %a.addr = alloca i8*, align 8 %b = alloca %struct.foo.0, align 1 store i8* %a, i8** %a.addr, align 8 - %buf = getelementptr inbounds %struct.foo.0* %b, i32 0, i32 0 - %arraydecay = getelementptr inbounds [4 x i8]* %buf, i32 0, i32 0 - %0 = load 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*, i8** %a.addr, align 8 %call = call i8* @strcpy(i8* %arraydecay, i8* %0) - %buf1 = getelementptr inbounds %struct.foo.0* %b, i32 0, i32 0 - %arraydecay2 = getelementptr inbounds [4 x i8]* %buf1, i32 0, i32 0 - %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) + %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 + %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay2) ret void } @@ -570,8 +570,8 @@ 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 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %0) + %0 = load i8*, i8** %a.addr, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %0) ret void } @@ -598,8 +598,8 @@ 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 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %0) + %0 = load i8*, i8** %a.addr, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %0) ret void } @@ -626,8 +626,8 @@ 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 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %0) + %0 = load i8*, i8** %a.addr, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %0) ret void } @@ -654,8 +654,8 @@ 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 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %0) + %0 = load i8*, i8** %a.addr, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [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 @@ -808,7 +808,7 @@ entry: ; DARWIN-X64: .cfi_endproc %a = alloca i32, align 4 %0 = ptrtoint i32* %a to i64 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i64 %0) + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i64 %0) ret void } @@ -835,7 +835,7 @@ entry: ; DARWIN-X64: .cfi_endproc %a = alloca i32, align 4 %0 = ptrtoint i32* %a to i64 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i64 %0) + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i64 %0) ret void } @@ -862,7 +862,7 @@ entry: ; DARWIN-X64: callq ___stack_chk_fail %a = alloca i32, align 4 %0 = ptrtoint i32* %a to i64 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i64 %0) + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i64 %0) ret void } @@ -889,7 +889,7 @@ entry: ; DARWIN-X64: callq ___stack_chk_fail %a = alloca i32, align 4 %0 = ptrtoint i32* %a to i64 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i64 %0) + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i64 %0) ret void } @@ -1021,7 +1021,7 @@ entry: store double %call, double* %x, align 8 %cmp2 = fcmp ogt double %call, 0.000000e+00 %y.1 = select i1 %cmp2, double* %x, double* null - %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), double* %y.1) + %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), double* %y.1) ret void } @@ -1051,7 +1051,7 @@ entry: store double %call, double* %x, align 8 %cmp2 = fcmp ogt double %call, 0.000000e+00 %y.1 = select i1 %cmp2, double* %x, double* null - %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), double* %y.1) + %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), double* %y.1) ret void } @@ -1081,7 +1081,7 @@ entry: store double %call, double* %x, align 8 %cmp2 = fcmp ogt double %call, 0.000000e+00 %y.1 = select i1 %cmp2, double* %x, double* null - %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), double* %y.1) + %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), double* %y.1) ret void } @@ -1111,7 +1111,7 @@ entry: store double %call, double* %x, align 8 %cmp2 = fcmp ogt double %call, 0.000000e+00 %y.1 = select i1 %cmp2, double* %x, double* null - %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), double* %y.1) + %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), double* %y.1) ret void } @@ -1155,7 +1155,7 @@ if.then3: ; preds = %if.else if.end4: ; preds = %if.else, %if.then3, %if.then %y.0 = phi double* [ null, %if.then ], [ %x, %if.then3 ], [ null, %if.else ] - %call5 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), double* %y.0) + %call5 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %y.0) ret void } @@ -1200,7 +1200,7 @@ if.then3: ; preds = %if.else if.end4: ; preds = %if.else, %if.then3, %if.then %y.0 = phi double* [ null, %if.then ], [ %x, %if.then3 ], [ null, %if.else ] - %call5 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), double* %y.0) + %call5 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %y.0) ret void } @@ -1245,7 +1245,7 @@ if.then3: ; preds = %if.else if.end4: ; preds = %if.else, %if.then3, %if.then %y.0 = phi double* [ null, %if.then ], [ %x, %if.then3 ], [ null, %if.else ] - %call5 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), double* %y.0) + %call5 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %y.0) ret void } @@ -1290,7 +1290,7 @@ if.then3: ; preds = %if.else if.end4: ; preds = %if.else, %if.then3, %if.then %y.0 = phi double* [ null, %if.then ], [ %x, %if.then3 ], [ null, %if.else ] - %call5 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), double* %y.0) + %call5 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %y.0) ret void } @@ -1316,10 +1316,10 @@ entry: ; DARWIN-X64: .cfi_endproc %c = alloca %struct.pair, align 4 %b = alloca i32*, align 8 - %y = getelementptr inbounds %struct.pair* %c, i32 0, i32 1 + %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 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32* %0) + %0 = load i32*, i32** %b, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32* %0) ret void } @@ -1346,10 +1346,10 @@ entry: ; DARWIN-X64: .cfi_endproc %c = alloca %struct.pair, align 4 %b = alloca i32*, align 8 - %y = getelementptr inbounds %struct.pair* %c, i32 0, i32 1 + %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 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32* %0) + %0 = load i32*, i32** %b, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32* %0) ret void } @@ -1376,10 +1376,10 @@ entry: ; DARWIN-X64: callq ___stack_chk_fail %c = alloca %struct.pair, align 4 %b = alloca i32*, align 8 - %y = getelementptr inbounds %struct.pair* %c, i32 0, i32 1 + %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 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32* %0) + %0 = load i32*, i32** %b, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32* %0) ret void } @@ -1406,10 +1406,10 @@ entry: ; DARWIN-X64: callq ___stack_chk_fail %c = alloca %struct.pair, align 4 %b = alloca i32*, align 8 - %y = getelementptr inbounds %struct.pair* %c, i32 0, i32 1 + %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 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32* %0) + %0 = load i32*, i32** %b, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32* %0) ret void } @@ -1435,9 +1435,9 @@ entry: ; DARWIN-X64: .cfi_endproc %c = alloca %struct.pair, align 4 %b = alloca i32*, align 8 - %y = getelementptr inbounds %struct.pair* %c, i32 0, i32 1 + %y = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 1 %0 = ptrtoint i32* %y to i64 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i64 %0) + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i64 %0) ret void } @@ -1464,9 +1464,9 @@ entry: ; DARWIN-X64: .cfi_endproc %c = alloca %struct.pair, align 4 %b = alloca i32*, align 8 - %y = getelementptr inbounds %struct.pair* %c, i32 0, i32 1 + %y = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 1 %0 = ptrtoint i32* %y to i64 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i64 %0) + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i64 %0) ret void } @@ -1492,9 +1492,9 @@ entry: ; DARWIN-X64: callq ___stack_chk_fail %c = alloca %struct.pair, align 4 %b = alloca i32*, align 8 - %y = getelementptr inbounds %struct.pair* %c, i32 0, i32 1 + %y = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 1 %0 = ptrtoint i32* %y to i64 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i64 %0) + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i64 %0) ret void } @@ -1521,9 +1521,9 @@ entry: ; DARWIN-X64: callq ___stack_chk_fail %c = alloca %struct.pair, align 4 %b = alloca i32*, align 8 - %y = getelementptr inbounds %struct.pair* %c, i32 0, i32 1 + %y = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 1 %0 = ptrtoint i32* %y to i64 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i64 %0) + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i64 %0) ret void } @@ -1548,8 +1548,8 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %c = alloca %struct.pair, align 4 - %y = getelementptr inbounds %struct.pair* %c, i64 0, i32 1 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), i32* %y) + %y = getelementptr inbounds %struct.pair, %struct.pair* %c, i64 0, i32 1 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %y) ret void } @@ -1575,8 +1575,8 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %c = alloca %struct.pair, align 4 - %y = getelementptr inbounds %struct.pair* %c, i64 0, i32 1 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), i32* %y) + %y = getelementptr inbounds %struct.pair, %struct.pair* %c, i64 0, i32 1 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %y) ret void } @@ -1602,8 +1602,8 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %c = alloca %struct.pair, align 4 - %y = getelementptr inbounds %struct.pair* %c, i64 0, i32 1 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), i32* %y) + %y = getelementptr inbounds %struct.pair, %struct.pair* %c, i64 0, i32 1 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %y) ret void } @@ -1629,8 +1629,8 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %c = alloca %struct.pair, align 4 - %y = getelementptr inbounds %struct.pair* %c, i64 0, i32 1 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), i32* %y) + %y = getelementptr inbounds %struct.pair, %struct.pair* %c, i64 0, i32 1 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %y) ret void } @@ -1655,8 +1655,8 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %a = alloca i32, align 4 - %add.ptr5 = getelementptr inbounds i32* %a, i64 -12 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), i32* %add.ptr5) + %add.ptr5 = getelementptr inbounds i32, i32* %a, i64 -12 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %add.ptr5) ret void } @@ -1682,8 +1682,8 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %a = alloca i32, align 4 - %add.ptr5 = getelementptr inbounds i32* %a, i64 -12 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), i32* %add.ptr5) + %add.ptr5 = getelementptr inbounds i32, i32* %a, i64 -12 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %add.ptr5) ret void } @@ -1709,8 +1709,8 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %a = alloca i32, align 4 - %add.ptr5 = getelementptr inbounds i32* %a, i64 -12 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), i32* %add.ptr5) + %add.ptr5 = getelementptr inbounds i32, i32* %a, i64 -12 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %add.ptr5) ret void } @@ -1736,8 +1736,8 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %a = alloca i32, align 4 - %add.ptr5 = getelementptr inbounds i32* %a, i64 -12 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), i32* %add.ptr5) + %add.ptr5 = getelementptr inbounds i32, i32* %a, i64 -12 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %add.ptr5) ret void } @@ -1767,8 +1767,8 @@ 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 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), float* %1) + %1 = load float*, float** %b, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), float* %1) ret void } @@ -1799,8 +1799,8 @@ 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 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), float* %1) + %1 = load float*, float** %b, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), float* %1) ret void } @@ -1831,8 +1831,8 @@ 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 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), float* %1) + %1 = load float*, float** %b, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), float* %1) ret void } @@ -1863,8 +1863,8 @@ 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 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), float* %1) + %1 = load float*, float** %b, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), float* %1) ret void } @@ -2004,9 +2004,9 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %c = alloca %struct.vec, align 16 - %y = getelementptr inbounds %struct.vec* %c, i64 0, i32 0 - %add.ptr = getelementptr inbounds <4 x i32>* %y, i64 -12 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), <4 x i32>* %add.ptr) + %y = getelementptr inbounds %struct.vec, %struct.vec* %c, i64 0, i32 0 + %add.ptr = getelementptr inbounds <4 x i32>, <4 x i32>* %y, i64 -12 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), <4 x i32>* %add.ptr) ret void } @@ -2032,9 +2032,9 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %c = alloca %struct.vec, align 16 - %y = getelementptr inbounds %struct.vec* %c, i64 0, i32 0 - %add.ptr = getelementptr inbounds <4 x i32>* %y, i64 -12 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), <4 x i32>* %add.ptr) + %y = getelementptr inbounds %struct.vec, %struct.vec* %c, i64 0, i32 0 + %add.ptr = getelementptr inbounds <4 x i32>, <4 x i32>* %y, i64 -12 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), <4 x i32>* %add.ptr) ret void } @@ -2060,9 +2060,9 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %c = alloca %struct.vec, align 16 - %y = getelementptr inbounds %struct.vec* %c, i64 0, i32 0 - %add.ptr = getelementptr inbounds <4 x i32>* %y, i64 -12 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), <4 x i32>* %add.ptr) + %y = getelementptr inbounds %struct.vec, %struct.vec* %c, i64 0, i32 0 + %add.ptr = getelementptr inbounds <4 x i32>, <4 x i32>* %y, i64 -12 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), <4 x i32>* %add.ptr) ret void } @@ -2088,9 +2088,9 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %c = alloca %struct.vec, align 16 - %y = getelementptr inbounds %struct.vec* %c, i64 0, i32 0 - %add.ptr = getelementptr inbounds <4 x i32>* %y, i64 -12 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), <4 x i32>* %add.ptr) + %y = getelementptr inbounds %struct.vec, %struct.vec* %c, i64 0, i32 0 + %add.ptr = getelementptr inbounds <4 x i32>, <4 x i32>* %y, i64 -12 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), <4 x i32>* %add.ptr) ret void } @@ -2264,9 +2264,9 @@ entry: %c = alloca %struct.pair, align 4 %exn.slot = alloca i8* %ehselector.slot = alloca i32 - %a = getelementptr inbounds %struct.pair* %c, i32 0, i32 0 + %a = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 0 store i32 0, i32* %a, align 4 - %a1 = getelementptr inbounds %struct.pair* %c, i32 0, i32 0 + %a1 = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 0 invoke void @_Z3exceptPi(i32* %a1) to label %invoke.cont unwind label %lpad @@ -2304,9 +2304,9 @@ entry: %c = alloca %struct.pair, align 4 %exn.slot = alloca i8* %ehselector.slot = alloca i32 - %a = getelementptr inbounds %struct.pair* %c, i32 0, i32 0 + %a = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 0 store i32 0, i32* %a, align 4 - %a1 = getelementptr inbounds %struct.pair* %c, i32 0, i32 0 + %a1 = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 0 invoke void @_Z3exceptPi(i32* %a1) to label %invoke.cont unwind label %lpad @@ -2344,9 +2344,9 @@ entry: %c = alloca %struct.pair, align 4 %exn.slot = alloca i8* %ehselector.slot = alloca i32 - %a = getelementptr inbounds %struct.pair* %c, i32 0, i32 0 + %a = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 0 store i32 0, i32* %a, align 4 - %a1 = getelementptr inbounds %struct.pair* %c, i32 0, i32 0 + %a1 = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 0 invoke void @_Z3exceptPi(i32* %a1) to label %invoke.cont unwind label %lpad @@ -2388,9 +2388,9 @@ entry: %c = alloca %struct.pair, align 4 %exn.slot = alloca i8* %ehselector.slot = alloca i32 - %a = getelementptr inbounds %struct.pair* %c, i32 0, i32 0 + %a = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 0 store i32 0, i32* %a, align 4 - %a1 = getelementptr inbounds %struct.pair* %c, i32 0, i32 0 + %a1 = getelementptr inbounds %struct.pair, %struct.pair* %c, i32 0, i32 0 invoke void @_Z3exceptPi(i32* %a1) to label %invoke.cont unwind label %lpad @@ -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 } @@ -2674,9 +2674,9 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %a = alloca %class.A, align 1 - %array = getelementptr inbounds %class.A* %a, i32 0, i32 0 - %arrayidx = getelementptr inbounds [2 x i8]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, 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, i8* %arrayidx, align 1 ret i8 %0 } @@ -2702,9 +2702,9 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %a = alloca %class.A, align 1 - %array = getelementptr inbounds %class.A* %a, i32 0, i32 0 - %arrayidx = getelementptr inbounds [2 x i8]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, 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, i8* %arrayidx, align 1 ret i8 %0 } @@ -2730,9 +2730,9 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %a = alloca %class.A, align 1 - %array = getelementptr inbounds %class.A* %a, i32 0, i32 0 - %arrayidx = getelementptr inbounds [2 x i8]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, 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, i8* %arrayidx, align 1 ret i8 %0 } @@ -2758,9 +2758,9 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %a = alloca %class.A, align 1 - %array = getelementptr inbounds %class.A* %a, i32 0, i32 0 - %arrayidx = getelementptr inbounds [2 x i8]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, 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, i8* %arrayidx, align 1 ret i8 %0 } @@ -2785,13 +2785,13 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %x = alloca %struct.deep, align 1 - %b = getelementptr inbounds %struct.deep* %x, i32 0, i32 0 + %b = getelementptr inbounds %struct.deep, %struct.deep* %x, i32 0, i32 0 %c = bitcast %union.anon* %b to %struct.anon* - %d = getelementptr inbounds %struct.anon* %c, i32 0, i32 0 - %e = getelementptr inbounds %struct.anon.0* %d, i32 0, i32 0 + %d = getelementptr inbounds %struct.anon, %struct.anon* %c, i32 0, i32 0 + %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]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, align 1 + %arrayidx = getelementptr inbounds [2 x i8], [2 x i8]* %array, i32 0, i64 0 + %0 = load i8, i8* %arrayidx, align 1 ret i8 %0 } @@ -2817,13 +2817,13 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %x = alloca %struct.deep, align 1 - %b = getelementptr inbounds %struct.deep* %x, i32 0, i32 0 + %b = getelementptr inbounds %struct.deep, %struct.deep* %x, i32 0, i32 0 %c = bitcast %union.anon* %b to %struct.anon* - %d = getelementptr inbounds %struct.anon* %c, i32 0, i32 0 - %e = getelementptr inbounds %struct.anon.0* %d, i32 0, i32 0 + %d = getelementptr inbounds %struct.anon, %struct.anon* %c, i32 0, i32 0 + %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]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, align 1 + %arrayidx = getelementptr inbounds [2 x i8], [2 x i8]* %array, i32 0, i64 0 + %0 = load i8, i8* %arrayidx, align 1 ret i8 %0 } @@ -2849,13 +2849,13 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %x = alloca %struct.deep, align 1 - %b = getelementptr inbounds %struct.deep* %x, i32 0, i32 0 + %b = getelementptr inbounds %struct.deep, %struct.deep* %x, i32 0, i32 0 %c = bitcast %union.anon* %b to %struct.anon* - %d = getelementptr inbounds %struct.anon* %c, i32 0, i32 0 - %e = getelementptr inbounds %struct.anon.0* %d, i32 0, i32 0 + %d = getelementptr inbounds %struct.anon, %struct.anon* %c, i32 0, i32 0 + %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]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, align 1 + %arrayidx = getelementptr inbounds [2 x i8], [2 x i8]* %array, i32 0, i64 0 + %0 = load i8, i8* %arrayidx, align 1 ret i8 %0 } @@ -2881,13 +2881,13 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %x = alloca %struct.deep, align 1 - %b = getelementptr inbounds %struct.deep* %x, i32 0, i32 0 + %b = getelementptr inbounds %struct.deep, %struct.deep* %x, i32 0, i32 0 %c = bitcast %union.anon* %b to %struct.anon* - %d = getelementptr inbounds %struct.anon* %c, i32 0, i32 0 - %e = getelementptr inbounds %struct.anon.0* %d, i32 0, i32 0 + %d = getelementptr inbounds %struct.anon, %struct.anon* %c, i32 0, i32 0 + %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]* %array, i32 0, i64 0 - %0 = load i8* %arrayidx, align 1 + %arrayidx = getelementptr inbounds [2 x i8], [2 x i8]* %array, i32 0, i64 0 + %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* @@ -3039,8 +3039,8 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %a = alloca [4 x i32], align 16 - %arrayidx = getelementptr inbounds [4 x i32]* %a, i32 0, i64 0 - %0 = load i32* %arrayidx, align 4 + %arrayidx = getelementptr inbounds [4 x i32], [4 x i32]* %a, i32 0, i64 0 + %0 = load i32, i32* %arrayidx, align 4 ret i32 %0 } @@ -3066,8 +3066,8 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %a = alloca [4 x i32], align 16 - %arrayidx = getelementptr inbounds [4 x i32]* %a, i32 0, i64 0 - %0 = load i32* %arrayidx, align 4 + %arrayidx = getelementptr inbounds [4 x i32], [4 x i32]* %a, i32 0, i64 0 + %0 = load i32, i32* %arrayidx, align 4 ret i32 %0 } @@ -3093,8 +3093,8 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %a = alloca [4 x i32], align 16 - %arrayidx = getelementptr inbounds [4 x i32]* %a, i32 0, i64 0 - %0 = load i32* %arrayidx, align 4 + %arrayidx = getelementptr inbounds [4 x i32], [4 x i32]* %a, i32 0, i64 0 + %0 = load i32, i32* %arrayidx, align 4 ret i32 %0 } @@ -3120,8 +3120,8 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %a = alloca [4 x i32], align 16 - %arrayidx = getelementptr inbounds [4 x i32]* %a, i32 0, i64 0 - %0 = load i32* %arrayidx, align 4 + %arrayidx = getelementptr inbounds [4 x i32], [4 x i32]* %a, i32 0, i64 0 + %0 = load i32, i32* %arrayidx, align 4 ret i32 %0 } @@ -3149,10 +3149,10 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %c = alloca %struct.nest, align 4 - %b = getelementptr inbounds %struct.nest* %c, i32 0, i32 1 - %_a = getelementptr inbounds %struct.pair* %b, i32 0, i32 0 - %0 = load i32* %_a, align 4 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32 %0) + %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, i32* %_a, align 4 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [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 @@ -3192,8 +3192,8 @@ bb6: ; preds = %bb17, %bb %tmp7 = phi %struct.small* [ %tmp19, %bb17 ], [ %tmp2, %bb ] %tmp8 = phi i64 [ %tmp20, %bb17 ], [ 1, %bb ] %tmp9 = phi i32 [ %tmp14, %bb17 ], [ %tmp1, %bb ] - %tmp10 = getelementptr inbounds %struct.small* %tmp7, i64 0, i32 0 - %tmp11 = load i8* %tmp10, align 1 + %tmp10 = getelementptr inbounds %struct.small, %struct.small* %tmp7, i64 0, i32 0 + %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 @@ -3202,8 +3202,8 @@ bb6: ; preds = %bb17, %bb br i1 %tmp16, label %bb21, label %bb17 bb17: ; preds = %bb6 - %tmp18 = getelementptr inbounds %struct.small** %tmp, i64 %tmp8 - %tmp19 = load %struct.small** %tmp18, align 8 + %tmp18 = getelementptr inbounds %struct.small*, %struct.small** %tmp, i64 %tmp8 + %tmp19 = load %struct.small*, %struct.small** %tmp18, align 8 %tmp20 = add i64 %tmp8, 1 br label %bb6 @@ -3234,8 +3234,8 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %test = alloca [32 x i8], align 16 - %arraydecay = getelementptr inbounds [32 x i8]* %test, i32 0, i32 0 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay) + %arraydecay = getelementptr inbounds [32 x i8], [32 x i8]* %test, i32 0, i32 0 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay) ret i32 %call } @@ -3260,8 +3260,8 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %test = alloca [33 x i8], align 16 - %arraydecay = getelementptr inbounds [33 x i8]* %test, i32 0, i32 0 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay) + %arraydecay = getelementptr inbounds [33 x i8], [33 x i8]* %test, i32 0, i32 0 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay) ret i32 %call } @@ -3286,8 +3286,8 @@ entry: ; DARWIN-X64-NOT: callq ___stack_chk_fail ; DARWIN-X64: .cfi_endproc %test = alloca [4 x i8], align 1 - %arraydecay = getelementptr inbounds [4 x i8]* %test, i32 0, i32 0 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay) + %arraydecay = getelementptr inbounds [4 x i8], [4 x i8]* %test, i32 0, i32 0 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay) ret i32 %call } @@ -3312,8 +3312,8 @@ entry: ; DARWIN-X64: mov{{l|q}} ___stack_chk_guard ; DARWIN-X64: callq ___stack_chk_fail %test = alloca [5 x i8], align 1 - %arraydecay = getelementptr inbounds [5 x i8]* %test, i32 0, i32 0 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay) + %arraydecay = getelementptr inbounds [5 x i8], [5 x i8]* %test, i32 0, i32 0 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %arraydecay) ret i32 %call } @@ -3343,11 +3343,11 @@ entry: %0 = bitcast { i64, i8 }* %test.coerce to i8* %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 }* %test.coerce, i32 0, i32 0 - %3 = load i64* %2, align 1 - %4 = getelementptr { i64, i8 }* %test.coerce, i32 0, i32 1 - %5 = load i8* %4, align 1 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i64 %3, i8 %5) + %2 = getelementptr { i64, i8 }, { i64, i8 }* %test.coerce, i32 0, i32 0 + %3 = load i64, i64* %2, align 1 + %4 = getelementptr { i64, i8 }, { i64, i8 }* %test.coerce, i32 0, i32 1 + %5 = load i8, i8* %4, align 1 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i64 %3, i8 %5) ret i32 %call } @@ -3377,11 +3377,11 @@ entry: %0 = bitcast { i64, i8 }* %test.coerce to i8* %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 }* %test.coerce, i32 0, i32 0 - %3 = load i64* %2, align 1 - %4 = getelementptr { i64, i8 }* %test.coerce, i32 0, i32 1 - %5 = load i8* %4, align 1 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i64 %3, i8 %5) + %2 = getelementptr { i64, i8 }, { i64, i8 }* %test.coerce, i32 0, i32 0 + %3 = load i64, i64* %2, align 1 + %4 = getelementptr { i64, i8 }, { i64, i8 }* %test.coerce, i32 0, i32 1 + %5 = load i8, i8* %4, align 1 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i64 %3, i8 %5) ret i32 %call } @@ -3409,8 +3409,8 @@ entry: %test = alloca i8*, align 8 %0 = alloca i8, i64 4 store i8* %0, i8** %test, align 8 - %1 = load i8** %test, align 8 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %1) + %1 = load i8*, i8** %test, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %1) ret i32 %call } @@ -3437,8 +3437,8 @@ entry: %test = alloca i8*, align 8 %0 = alloca i8, i64 5 store i8* %0, i8** %test, align 8 - %1 = load i8** %test, align 8 - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* %1) + %1 = load i8*, i8** %test, align 8 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* %1) ret i32 %call } |