repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git]
/
llvm
/
test
/
MC
/
WebAssembly
/
typechecking-else.s
blob
184090171f7cf44fd98a969014f4354e4c82b29a
1
# Check that it converts to .o without errors
2
# RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj -mattr=+reference-types < %s
3
4
objects
:
5
.tabletype objects,externref
6
7
handle_value
:
8
.hidden handle_value
9
.globl handle_value
10
.type handle_value,@function
11
.functype handle_value (i32) -> (externref)
12
local.get
0
13
i32.const
-
1
14
i32.eq
15
if externref
16
ref.null_extern
17
else
18
local.get
0
19
table.get objects
20
end_if
21
end_function