Skip to content

Commit 7691673

Browse files
committed
test
1 parent f4b9e45 commit 7691673

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

test/lit/passes/gsi-desc.wast

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -190,48 +190,48 @@
190190
(module
191191
(rec
192192
;; CHECK: (rec
193-
;; CHECK-NEXT: (type $super (sub (descriptor $super.desc (struct))))
194-
(type $super (sub (descriptor $super.desc (struct))))
195-
;; CHECK: (type $super.desc (sub (describes $super (struct))))
196-
(type $super.desc (sub (describes $super (struct))))
197-
198-
;; CHECK: (type $sub (sub $super (descriptor $sub.desc (struct))))
199-
(type $sub (sub $super (descriptor $sub.desc (struct))))
200-
;; CHECK: (type $sub.desc (sub $super.desc (describes $sub (struct))))
201-
(type $sub.desc (sub $super.desc (describes $sub (struct))))
193+
;; CHECK-NEXT: (type $A (sub (descriptor $A.desc (struct))))
194+
(type $A (sub (descriptor $A.desc (struct))))
195+
;; CHECK: (type $A.desc (sub (describes $A (struct))))
196+
(type $A.desc (sub (describes $A (struct))))
197+
198+
;; CHECK: (type $B (sub $A (descriptor $B.desc (struct))))
199+
(type $B (sub $A (descriptor $B.desc (struct))))
200+
;; CHECK: (type $B.desc (sub $A.desc (describes $B (struct))))
201+
(type $B.desc (sub $A.desc (describes $B (struct))))
202202
)
203203

204204
;; CHECK: (type $4 (func (param anyref)))
205205

206-
;; CHECK: (global $sub.desc (ref $sub.desc) (struct.new_default $sub.desc))
207-
(global $sub.desc (ref $sub.desc) (struct.new $sub.desc))
206+
;; CHECK: (global $B.desc (ref $B.desc) (struct.new_default $B.desc))
207+
(global $B.desc (ref $B.desc) (struct.new $B.desc))
208208

209-
;; CHECK: (global $super.desc (ref $super.desc) (struct.new_default $super.desc))
210-
(global $super.desc (ref $super.desc) (struct.new $super.desc))
209+
;; CHECK: (global $A.desc (ref $A.desc) (struct.new_default $A.desc))
210+
(global $A.desc (ref $A.desc) (struct.new $A.desc))
211211

212212
;; CHECK: (func $test (type $4) (param $any anyref)
213213
;; CHECK-NEXT: (drop
214-
;; CHECK-NEXT: (ref.cast (ref $super)
214+
;; CHECK-NEXT: (ref.cast (ref $A)
215215
;; CHECK-NEXT: (local.get $any)
216216
;; CHECK-NEXT: )
217217
;; CHECK-NEXT: )
218218
;; CHECK-NEXT: (drop
219-
;; CHECK-NEXT: (ref.cast_desc (ref $sub)
219+
;; CHECK-NEXT: (ref.cast_desc (ref $B)
220220
;; CHECK-NEXT: (local.get $any)
221-
;; CHECK-NEXT: (global.get $sub.desc)
221+
;; CHECK-NEXT: (global.get $B.desc)
222222
;; CHECK-NEXT: )
223223
;; CHECK-NEXT: )
224224
;; CHECK-NEXT: )
225225
(func $test (param $any anyref)
226226
;; The second cast here is optimizable: it can only be to a single type with
227227
;; no subtypes, so we can use ref.cast_desc.
228228
(drop
229-
(ref.cast (ref $super)
229+
(ref.cast (ref $A)
230230
(local.get $any)
231231
)
232232
)
233233
(drop
234-
(ref.cast (ref $sub)
234+
(ref.cast (ref $B)
235235
(local.get $any)
236236
)
237237
)

0 commit comments

Comments
 (0)