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: adding another loop test.
- Loading branch information
Showing
2 changed files
with
38 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,34 @@ | ||
; Function Attrs: noinline nounwind optnone ssp uwtable | ||
define i256 @abc(i256, i256) #0 { | ||
%3 = alloca i256, align 4 | ||
%4 = alloca i256, align 4 | ||
%5 = alloca i256, align 4 | ||
store i256 %0, i256* %3, align 4 | ||
store i256 %1, i256* %4, align 4 | ||
store i256 0, i256* %5, align 4 | ||
br label %6 | ||
|
||
; <label>:6: ; preds = %14, %2 | ||
%7 = load i256, i256* %5, align 4 | ||
%8 = load i256, i256* %4, align 4 | ||
%9 = icmp ult i256 %7, %8 | ||
br i1 %9, label %10, label %17 | ||
|
||
; <label>:10: ; preds = %6 | ||
%11 = load i256, i256* %3, align 4 | ||
%12 = load i256, i256* %3, align 4 | ||
%13 = add i256 %12, %11 | ||
store i256 %13, i256* %3, align 4 | ||
br label %14 | ||
|
||
; <label>:14: ; preds = %10 | ||
%15 = load i256, i256* %5, align 4 | ||
%16 = add i256 %15, 1 | ||
store i256 %16, i256* %5, align 4 | ||
br label %6 | ||
|
||
; <label>:17: ; preds = %6 | ||
%18 = load i256, i256* %3, align 4 | ||
ret i256 %18 | ||
} | ||
|
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