llvm-project/llvm/test/MC/X86/intel-syntax-expr.s
v01dXYZ 25752a40b8
[X86AsmParser] IntelExpression: End of Statement should check for valid end state (#95677)
The following commit bfb7099eeb9b6f62510b1db0cb93a8c3cfa68236 added a
special case for End of Statement that doesn't check if the state
machine is rightfully in a state where ending is valid.

This PR suggest to revert this change to make `EndOfStatement` processed
as any other tokens that are not consumable by the state machine.

Fixes https://github.com/llvm/llvm-project/issues/94446

---------

Co-authored-by: v01dxyz <v01dxyz@v01d.xyz>
2024-07-16 09:30:19 +08:00

9 lines
350 B
ArmAsm

// RUN: not llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=intel %s 2>&1 | FileCheck %s
// When the intel syntax is enabled, to parse an operand, X86AsmParser doesn't use the method parseExpression from AsmParser
// but ParseIntelExpr which was not processing well an end of statement.
// CHECK: error: unknown token in expression
test:
i-