Created
February 26, 2012 03:51
-
-
Save startling/1912834 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ModuleID = 'plusequals.c' | |
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" | |
target triple = "x86_64-apple-macosx10.6.8" | |
define i32 @main(i32 %argc, i8** %argv) nounwind uwtable ssp { | |
%1 = alloca i32, align 4 | |
%2 = alloca i32, align 4 | |
%3 = alloca i8**, align 8 | |
store i32 0, i32* %1 | |
store i32 %argc, i32* %2, align 4 | |
store i8** %argv, i8*** %3, align 8 | |
%4 = load i32* %2, align 4 | |
%5 = add nsw i32 %4, 1 | |
store i32 %5, i32* %2, align 4 | |
ret i32 %5 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ModuleID = 'postincrement.c' | |
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" | |
target triple = "x86_64-apple-macosx10.6.8" | |
define i32 @main(i32 %argc, i8** %argv) nounwind uwtable ssp { | |
%1 = alloca i32, align 4 | |
%2 = alloca i32, align 4 | |
%3 = alloca i8**, align 8 | |
store i32 0, i32* %1 | |
store i32 %argc, i32* %2, align 4 | |
store i8** %argv, i8*** %3, align 8 | |
%4 = load i32* %2, align 4 | |
%5 = add nsw i32 %4, 1 | |
store i32 %5, i32* %2, align 4 | |
ret i32 %4 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ModuleID = 'preincrement.c' | |
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" | |
target triple = "x86_64-apple-macosx10.6.8" | |
define i32 @main(i32 %argc, i8** %argv) nounwind uwtable ssp { | |
%1 = alloca i32, align 4 | |
%2 = alloca i32, align 4 | |
%3 = alloca i8**, align 8 | |
store i32 0, i32* %1 | |
store i32 %argc, i32* %2, align 4 | |
store i8** %argv, i8*** %3, align 8 | |
%4 = load i32* %2, align 4 | |
%5 = add nsw i32 %4, 1 | |
store i32 %5, i32* %2, align 4 | |
ret i32 %5 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment