llvm-project/llvm/test/MC/WebAssembly
Alex Bradbury 61d5fa6b62 [WebAssembly] Fix error location for parsed symbol/label operands
The previous code didn't take account for the fact that parseExpression
my lex additional tokens - because of this, it's necessary to record the
location of the current token ahead of the call. This patch additionally
makes use of the fact parseExpression will set its End parameter to the
end of the expression.

Although this fix could be added independently of D122127, I've opted to
make it a child patch in order to ensure the change has some test
coverage.

Differential Revision: https://reviews.llvm.org/D122128
2022-03-23 08:53:05 +00:00
..
alias-offset.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
alias.s
annotations.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
array-fill.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
assembler-binary.ll [WebAssembly] Refactor and fix emission of external IR global decls 2022-02-04 22:01:46 +01:00
atomics-encodings.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
bad-fixup-expr.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
basic-assembly-errors.s
basic-assembly.s [WebAssembly] Allow .data shorthand for .section .data,"",@ 2022-02-22 10:26:36 -08:00
blockaddress.ll
bss.ll
bulk-memory-encodings.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
call-indirect-relocs.s
comdat-sections.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
comdat-sections.s
comdat.ll
compile-twice.ll
custom-code-section.ll
custom-section-alignment.ll [WebAssembly] Emit clangast in custom section aligned by 4 bytes 2021-10-19 15:50:08 -07:00
custom-sections.ll
data-section-combined.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
data-section.s
data-symbol-in-text-section.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
debug-byval-struct.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
debug-info.ll Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
debug-info64.ll Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
debug-localvar.ll Revert "[WebAssembly] Fix debug locations for ExplicitLocals pass" 2021-10-29 13:34:18 -07:00
debug-template-param.ll [WebAssembly] Generate R_WASM_FUNCTION_OFFSET relocs in debuginfo sections 2021-07-19 14:02:33 -07:00
debuginfo-relocs.s [WebAssembly] Generate R_WASM_FUNCTION_OFFSET relocs in debuginfo sections 2021-07-19 14:02:33 -07:00
dwarfdump.ll Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
dwarfdump64.ll Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
explicit-sections.ll
export-name.s
extern-functype-intrinsic.ll [WebAssembly] Fixed AsmPrinter not emitting .functype for intrinsics 2022-02-22 16:14:26 -08:00
external-data.ll
external-func-address.ll
externref.s
file-headers.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
func-address.ll [test] Avoid llvm-readelf/llvm-readobj one-dash long options and deprecated aliases (e.g. --file-headers) 2021-07-15 10:26:21 -07:00
funcref-from-table.s [WebAssembly] Update WebAssemblyAsmTypeCheck for table.get 2022-03-05 16:57:29 +01:00
function-alias.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
function-sections.ll
global-ctor-dtor.ll
globals.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
import-module.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
libcall.ll
lit.local.cfg
missing-features.s
no-dead-strip.ll
null-output.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
objdump.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
offset.ll
reference-types.s [WebAssembly] Implementation of intrinsic for ref.null and HeapType removal 2021-12-06 09:46:15 +01:00
reloc-code.s [MC][WebAssembly] Fix crash when relocation addend underlows U32 2022-02-25 07:13:15 -08:00
reloc-data.ll
reloc-pic.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
reloc-pic64.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
reloc-relative.ll
section-flags-changed.s
section-symbol.s
sections.ll
simd-encodings.s [WebAssembly] Fix names of SIMD instructions containing '_zero' 2022-03-16 13:34:57 -07:00
stack-ptr-mclower.ll [WebAssembly] Always emit functype directives for defined functions 2022-03-22 09:24:58 +00:00
stack-ptr.ll
tables.s
tag-section-decoding.ll [WebAssembly] Remove WasmTagType 2021-10-05 17:11:22 -07:00
tag-section.ll [WebAssembly] Remove WasmTagType 2021-10-05 17:11:22 -07:00
tail-call-encodings.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
tls.s [WebAssembly] Allow import and export of TLS symbols between DSOs 2021-09-14 06:47:37 -07:00
tls64.s [WebAssembly] Add explict TLS symbol flag 2021-09-09 10:03:30 -04:00
type-checker-errors.s [WebAssembly] Fix error location for parsed symbol/label operands 2022-03-23 08:53:05 +00:00
type-checker-return.s [WebAssembly] Add tests for the Asm type checker 2022-03-22 16:13:35 +00:00
type-index.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
typechecking-else.s [WebAssembly] Fix typechecking for else MCInst 2021-12-16 11:18:01 +01:00
types.ll
unnamed-data.ll
visibility.ll
wasm64.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
weak-alias.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
weak.s