Fix ModR/M byte output for 16-bit addressing modes (PR18220)
authorCraig Topper <craig.topper@gmail.com>
Sun, 5 Jan 2014 19:40:56 +0000 (19:40 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 5 Jan 2014 19:40:56 +0000 (19:40 +0000)
commit21ba8fbc18808675a30cbbeb7940f2aa6169427d
tree3dbeda554ef1c516f755eb2a6958e3ab6f189494
parentbac9b569c6625045543a5f81e8df81e225495ec2
Fix ModR/M byte output for 16-bit addressing modes (PR18220)

Add some tests to validate correct register selection, including a fix
to an existing test which was requiring the *wrong* output.

Patch from David Woodhouse.

llvm-svn: 198566
llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
llvm/test/MC/X86/address-size.s