forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #27: dispatcher adding free memory pointer initialization.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
;; simple comparison | ||
define i256 @abcd(i256 %a, i256 %b) { | ||
entry: | ||
%0 = alloca i256 | ||
%1 = icmp ugt i256 %a, %b | ||
br i1 %1, label %true, label %false | ||
|
||
true: | ||
store i256 %a, i256* %0 | ||
br label %finally | ||
|
||
false: | ||
store i256 %b, i256* %0 | ||
br label %finally | ||
|
||
finally: | ||
%2 = load i256, i256* %0 | ||
ret i256 %2 | ||
} | ||
|
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