Page MenuHomePhabricator

[AsmParser] Recognize more escaped characters between single quotes

Authored by LemonBoy on Tue, Mar 30, 10:12 AM.



The GNU AS manual states the following about single-character constants enclosed within single quotes:

Some backslash escapes apply to characters, \b, \f, \n, \r, \t, and \" with the same meaning as for strings, plus \' for a single quote.

Add two more characters to the switch handling this case to match GAS behaviour, plus a test to make sure nothing regresses.

Diff Detail

Event Timeline

LemonBoy created this revision.Tue, Mar 30, 10:12 AM
LemonBoy requested review of this revision.Tue, Mar 30, 10:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptTue, Mar 30, 10:12 AM
MaskRay accepted this revision.Wed, Apr 7, 12:01 PM



Consider CHECK-NEXT:. We want to make sure the parser consumes newlines correctly and does not insert extra newlines.

This revision is now accepted and ready to land.Wed, Apr 7, 12:01 PM
LemonBoy updated this revision to Diff 336024.Thu, Apr 8, 12:56 AM

Use CHECK-NEXT in more places.

This revision was landed with ongoing or failed builds.Thu, Apr 8, 12:59 AM
This revision was automatically updated to reflect the committed changes.