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

Commit 0b4ca80

Browse files
committed
Use BB-like EBB in filetests/isa/riscv/*.clif
1 parent 4fe92a8 commit 0b4ca80

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

filetests/isa/riscv/binary32.clif

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,36 +95,77 @@ ebb0(v9999: i32):
9595
call_indirect sig0, v2() ; bin: 000a80e7
9696

9797
brz v1, ebb3
98+
fallthrough ebb4
99+
100+
ebb4:
98101
brnz v1, ebb1
102+
fallthrough ebb5
99103

104+
ebb5:
100105
; jalr %x0, %x1, 0
101106
return v9999 ; bin: 00008067
102107

103108
ebb1:
104109
; beq 0x000
105110
br_icmp eq v1, v2, ebb1 ; bin: 01550063
111+
fallthrough ebb100
112+
113+
ebb100:
106114
; bne 0xffc
107115
br_icmp ne v1, v2, ebb1 ; bin: ff551ee3
116+
fallthrough ebb101
117+
118+
ebb101:
108119
; blt 0xff8
109120
br_icmp slt v1, v2, ebb1 ; bin: ff554ce3
121+
fallthrough ebb102
122+
123+
ebb102:
110124
; bge 0xff4
111125
br_icmp sge v1, v2, ebb1 ; bin: ff555ae3
126+
fallthrough ebb103
127+
128+
ebb103:
112129
; bltu 0xff0
113130
br_icmp ult v1, v2, ebb1 ; bin: ff5568e3
131+
fallthrough ebb104
132+
133+
ebb104:
114134
; bgeu 0xfec
115135
br_icmp uge v1, v2, ebb1 ; bin: ff5576e3
136+
fallthrough ebb105
137+
138+
ebb105:
116139

117140
; Forward branches.
141+
fallthrough ebb106
142+
143+
ebb106:
118144
; beq 0x018
119145
br_icmp eq v2, v1, ebb2 ; bin: 00aa8c63
146+
fallthrough ebb107
147+
148+
ebb107:
120149
; bne 0x014
121150
br_icmp ne v2, v1, ebb2 ; bin: 00aa9a63
151+
fallthrough ebb108
152+
153+
ebb108:
122154
; blt 0x010
123155
br_icmp slt v2, v1, ebb2 ; bin: 00aac863
156+
fallthrough ebb109
157+
158+
ebb109:
124159
; bge 0x00c
125160
br_icmp sge v2, v1, ebb2 ; bin: 00aad663
161+
fallthrough ebb110
162+
163+
ebb110:
126164
; bltu 0x008
127165
br_icmp ult v2, v1, ebb2 ; bin: 00aae463
166+
fallthrough ebb111
167+
168+
ebb111:
128169
; bgeu 0x004
129170
br_icmp uge v2, v1, ebb2 ; bin: 00aaf263
130171

@@ -137,6 +178,9 @@ ebb2:
137178
ebb3:
138179
; beq x, %x0
139180
brz v1, ebb3 ; bin: 00050063
181+
fallthrough ebb6
182+
183+
ebb6:
140184
; bne x, %x0
141185
brnz v1, ebb3 ; bin: fe051ee3
142186

0 commit comments

Comments
 (0)