MASM interprets strings in expression contexts as integers expressed in big-endian base-256, treating each character as its ASCII representation.
This completely eliminates the need to special-case single-character strings.
Paths
| Differential D90788
[ms] [llvm-ml] Allow arbitrary strings as integer constants ClosedPublic Authored by epastor on Nov 4 2020, 12:56 PM.
Details Summary MASM interprets strings in expression contexts as integers expressed in big-endian base-256, treating each character as its ASCII representation. This completely eliminates the need to special-case single-character strings.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 5 2020, 12:36 PM This revision was landed with ongoing or failed builds.Nov 6 2020, 2:16 PM Closed by commit rG5afb36080809: [ms] [llvm-ml] Allow arbitrary strings as integer constants (authored by epastor). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 303545 llvm/lib/MC/MCParser/MasmParser.cpp
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/test/tools/llvm-ml/strings.test
llvm/test/tools/llvm-ml/strings_errors.test
|