1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/MC/AArch64/expr-bad-symbol.s
Francis Visoiu Mistrih 807e94ffd7 [AsmParser] Return an error in the case of empty symbol ref in an expression
The following instruction:

> str q28, [x0, #1*6*4*@]

contains a @ which is parsed as an empty symbol. The parser returns true
but has no error, so the assembler continues by ignoring the
instruction.

Differential Revision: https://reviews.llvm.org/D52645

llvm-svn: 343961
2018-10-08 10:28:11 +00:00

7 lines
147 B
ArmAsm

// RUN: not llvm-mc -triple aarch64-- %s 2>&1 | FileCheck %s
.text
_foo:
str q28, [x0, #1*6*4*@]
// CHECK: error: expected a symbol reference