]> granicus.if.org Git - llvm/commit
[MC] Pass through .code16/32/64 and .syntax unified for COFF
authorReid Kleckner <rnk@google.com>
Tue, 3 Sep 2019 18:16:52 +0000 (18:16 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 3 Sep 2019 18:16:52 +0000 (18:16 +0000)
commitc15b5856cb72b4474b6d027fbaefd63bd652c490
treea06db58db9efc4241e8fd71853dcd49e506328ef
parent9124b7237228ceccd967873a5be9fe8ee459e8ee
[MC] Pass through .code16/32/64 and .syntax unified for COFF

These flags should simply be passed through to the target, which will do
the right thing. Add an MC/X86 test that uses these directives with the
three primary object file formats and shows that they disassemble the
same everywhere.

There is a missing test for .code32 on Windows ARM, since I'm not sure
exactly how to construct one.

Fixes PR43203

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370805 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCWinCOFFStreamer.cpp
lib/Target/ARM/MCTargetDesc/ARMWinCOFFStreamer.cpp
test/MC/X86/code16-32-64.s [new file with mode: 0644]