Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 1ab3f9c

Browse files
committed
Use BB-like EBB in filetests/postopt/*.clif
1 parent 0ca1f43 commit 1ab3f9c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

filetests/postopt/basic.clif

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ function %br_icmp(i32, i32) -> i32 {
77
ebb0(v0: i32, v1: i32):
88
[Op1icscc#39,%rdx] v2 = icmp slt v0, v1
99
[Op1t8jccd_long#85] brnz v2, ebb1
10+
[-] fallthrough ebb2
11+
12+
ebb2:
1013
[Op1ret#c3] return v1
1114

1215
ebb1:
@@ -18,6 +21,9 @@ ebb1:
1821
; nextln: v9 = ifcmp v0, v1
1922
; nextln: v2 = trueif slt v9
2023
; nextln: brif slt v9, ebb1
24+
; nextln: fallthrough ebb2
25+
; nextln:
26+
; nextln: ebb2:
2127
; nextln: return v1
2228
; nextln:
2329
; nextln: ebb1:
@@ -31,6 +37,9 @@ function %br_icmp_inverse(i32, i32) -> i32 {
3137
ebb0(v0: i32, v1: i32):
3238
[Op1icscc#39,%rdx] v2 = icmp slt v0, v1
3339
[Op1t8jccd_long#84] brz v2, ebb1
40+
[-] fallthrough ebb2
41+
42+
ebb2:
3443
[Op1ret#c3] return v1
3544

3645
ebb1:
@@ -42,6 +51,9 @@ ebb1:
4251
; nextln: v9 = ifcmp v0, v1
4352
; nextln: v2 = trueif slt v9
4453
; nextln: brif sge v9, ebb1
54+
; nextln: fallthrough ebb2
55+
; nextln:
56+
; nextln: ebb2:
4557
; nextln: return v1
4658
; nextln:
4759
; nextln: ebb1:
@@ -55,6 +67,9 @@ function %br_icmp_imm(i32, i32) -> i32 {
5567
ebb0(v0: i32, v1: i32):
5668
[Op1icscc_ib#7083] v2 = icmp_imm slt v0, 2
5769
[Op1t8jccd_long#84] brz v2, ebb1
70+
[-] fallthrough ebb2
71+
72+
ebb2:
5873
[Op1ret#c3] return v1
5974

6075
ebb1:
@@ -66,6 +81,9 @@ ebb1:
6681
; nextln: v9 = ifcmp_imm v0, 2
6782
; nextln: v2 = trueif slt v9
6883
; nextln: brif sge v9, ebb1
84+
; nextln: fallthrough ebb2
85+
; nextln:
86+
; nextln: ebb2:
6987
; nextln: return v1
7088
; nextln:
7189
; nextln: ebb1:
@@ -79,6 +97,9 @@ function %br_fcmp(f32, f32) -> f32 {
7997
ebb0(v0: f32, v1: f32):
8098
[Op2fcscc#42e,%rdx] v2 = fcmp gt v0, v1
8199
[Op1t8jccd_long#84] brz v2, ebb1
100+
[-] fallthrough ebb2
101+
102+
ebb2:
82103
[Op1ret#c3] return v1
83104

84105
ebb1:
@@ -91,6 +112,9 @@ ebb1:
91112
; nextln: v19 = ffcmp v0, v1
92113
; nextln: v2 = trueff gt v19
93114
; nextln: brff ule v19, ebb1
115+
; nextln: fallthrough ebb2
116+
; nextln:
117+
; nextln: ebb2:
94118
; nextln: return v1
95119
; nextln:
96120
; nextln: ebb1:

0 commit comments

Comments
 (0)