Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-symbolizer / wasm-basic.s
blobcc189abcfca80cef6c54d0e7dafa8809e5965677
1 # REQUIRES: webassembly-registered-target
2 # RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj %s -o %t.o -g
4 foo:
5 .functype foo () -> ()
6 nop
7 end_function
9 bar:
10 .functype bar (i32) -> (i32)
11 local.get 0
12 return
13 end_function
15 # RUN: llvm-symbolizer -e %t.o 3 4 7 8 | FileCheck %s
16 ## Byte 1 is the function length and 2 is the locals declaration.
17 ## Currently no line corresponds to them.
18 ## TODO: create a loc for .functype?
20 ## Test 2 functions to ensure wasm's function-sections system works.
21 # CHECK: wasm-basic.s:6:0
22 # CHECK: wasm-basic.s:7:0
23 # CHECK: wasm-basic.s:11:0
24 # CHECK: wasm-basic.s:11:0