mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
[x86AsmParser] It's valid to stop parsing an operand at an immediate.
rdar://13854369 and PR15944 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181564 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
58dcd200b7
commit
a70d02ff28
@ -219,7 +219,9 @@ private:
|
||||
const MCExpr *getSym() { return Sym; }
|
||||
StringRef getSymName() { return SymName; }
|
||||
int64_t getImm() { return Imm + IC.execute(); }
|
||||
bool isValidEndState() { return State == IES_RBRAC; }
|
||||
bool isValidEndState() {
|
||||
return State == IES_RBRAC || State == IES_INTEGER;
|
||||
}
|
||||
bool getStopOnLBrac() { return StopOnLBrac; }
|
||||
bool getAddImmPrefix() { return AddImmPrefix; }
|
||||
bool hadError() { return State == IES_ERROR; }
|
||||
|
@ -322,4 +322,6 @@ _main:
|
||||
setnle al
|
||||
// CHECK: jne _foo
|
||||
jnz _foo
|
||||
// CHECK: outb %al, $4
|
||||
out 4, al
|
||||
ret
|
||||
|
Loading…
Reference in New Issue
Block a user