-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
irgen: Regenerate test cases to emit labels of unnamed basic blocks i…
…n comments. Related to commit llir/llvm@abec15b. Updates #72.
- Loading branch information
Showing
48 changed files
with
111 additions
and
110 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define void @f(i32* %a) { | ||
0: | ||
; <label>:0 | ||
%1 = alloca i32* | ||
%b = alloca [5 x i32] | ||
store i32* %a, i32** %1 | ||
|
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f(i32* %a) { | ||
0: | ||
; <label>:0 | ||
%1 = alloca i32* | ||
store i32* %a, i32** %1 | ||
%2 = load i32*, i32** %1 | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%b = alloca i32 | ||
%1 = load i32, i32* %a | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%b = alloca i32 | ||
%1 = load i32, i32* %b | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%b = alloca i32 | ||
%1 = load i32, i32* %a | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%b = alloca i32 | ||
%1 = load i32, i32* %a | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%b = alloca i32 | ||
%1 = load i32, i32* %a | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%b = alloca i32 | ||
%1 = load i32, i32* %a | ||
|
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%b = alloca i32 | ||
%1 = load i32, i32* %a | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%b = alloca i32 | ||
%1 = load i32, i32* %a | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%b = alloca i32 | ||
%1 = load i32, i32* %a | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%b = alloca i32 | ||
%1 = load i32, i32* %a | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%b = alloca i32 | ||
%1 = load i32, i32* %a | ||
|
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
define i32 @g(i32 %a) { | ||
0: | ||
; <label>:0 | ||
%1 = alloca i32 | ||
store i32 %a, i32* %1 | ||
ret i32 42 | ||
} | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%1 = call i32 @g(i32 1) | ||
ret i32 %1 | ||
} |
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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%x = alloca i32 | ||
%1 = load i32, i32* %x | ||
ret i32 %1 | ||
|
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
define void @g() { | ||
0: | ||
; <label>:0 | ||
ret void | ||
} | ||
define void @f() { | ||
0: | ||
; <label>:0 | ||
call void @g() | ||
ret void | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define i32 @f(i32 %a) { | ||
0: | ||
; <label>:0 | ||
%1 = alloca i32 | ||
store i32 %a, i32* %1 | ||
%2 = load i32, i32* %1 | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
@a = global i32 0 | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
%1 = load i32, i32* @a | ||
ret i32 %1 | ||
} |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
define void @f() { | ||
0: | ||
; <label>:0 | ||
%x = alloca i32 | ||
%1 = load i32, i32* %x | ||
%2 = icmp ne i32 %1, 0 | ||
br i1 %2, label %3, label %4 | ||
3: | ||
; <label>:3 | ||
br label %5 | ||
4: | ||
; <label>:4 | ||
br label %5 | ||
5: | ||
; <label>:5 | ||
ret void | ||
} |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
define void @f() { | ||
0: | ||
; <label>:0 | ||
%x = alloca i32 | ||
%1 = load i32, i32* %x | ||
%2 = icmp ne i32 %1, 0 | ||
br i1 %2, label %3, label %4 | ||
3: | ||
; <label>:3 | ||
br label %4 | ||
4: | ||
; <label>:4 | ||
ret void | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
define void @f() { | ||
0: | ||
; <label>:0 | ||
ret void | ||
} |
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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define void @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
store i32 5, i32* %a | ||
ret void | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
define void @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%1 = load i32, i32* %a | ||
ret void | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
define i32 @f() { | ||
0: | ||
; <label>:0 | ||
ret i32 42 | ||
} |
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 |
---|---|---|
@@ -1,34 +1,34 @@ | ||
define void @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%b = alloca i32 | ||
%1 = load i32, i32* %a | ||
%2 = icmp ne i32 %1, 0 | ||
br i1 %2, label %3, label %15 | ||
3: | ||
; <label>:3 | ||
%4 = load i32, i32* %b | ||
%5 = icmp ne i32 %4, 0 | ||
br i1 %5, label %6, label %15 | ||
6: | ||
; <label>:6 | ||
%7 = load i32, i32* %a | ||
%8 = icmp ne i32 %7, 0 | ||
br i1 %8, label %9, label %13 | ||
9: | ||
; <label>:9 | ||
%10 = load i32, i32* %b | ||
%11 = icmp ne i32 %10, 0 | ||
br i1 %11, label %12, label %13 | ||
12: | ||
; <label>:12 | ||
store i32 11, i32* %a | ||
br label %14 | ||
13: | ||
; <label>:13 | ||
store i32 22, i32* %a | ||
br label %14 | ||
14: | ||
; <label>:14 | ||
store i32 33, i32* %a | ||
br label %16 | ||
15: | ||
; <label>:15 | ||
store i32 44, i32* %a | ||
br label %16 | ||
16: | ||
; <label>:16 | ||
ret void | ||
} |
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
define void @f() { | ||
0: | ||
; <label>:0 | ||
%a = alloca i32 | ||
%1 = load i32, i32* %a | ||
%2 = icmp ne i32 %1, 0 | ||
br i1 %2, label %3, label %9 | ||
3: | ||
; <label>:3 | ||
%4 = load i32, i32* %a | ||
%5 = icmp ne i32 %4, 0 | ||
br i1 %5, label %6, label %7 | ||
6: | ||
; <label>:6 | ||
store i32 11, i32* %a | ||
br label %8 | ||
7: | ||
; <label>:7 | ||
store i32 22, i32* %a | ||
br label %8 | ||
8: | ||
; <label>:8 | ||
store i32 33, i32* %a | ||
br label %10 | ||
9: | ||
; <label>:9 | ||
store i32 44, i32* %a | ||
br label %10 | ||
10: | ||
; <label>:10 | ||
ret void | ||
} |
Oops, something went wrong.