[X86] Add relaxtion logic for ADC instructions.
authorQuentin Colombet <qcolombet@apple.com>
Mon, 14 Dec 2015 23:12:40 +0000 (23:12 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Mon, 14 Dec 2015 23:12:40 +0000 (23:12 +0000)
commit265bc7dab126aadfb12f7ea40f25ae0bf85cff33
treedff4666f2475cc90617ea532abc0732c609e4fd4
parent46508070a4e11ecf9470855b97eef0db378beacb
[X86] Add relaxtion logic for ADC instructions.

Prior to this patch, we would wrongly stick to the variant with imm8 encoding
even when the relocation could not fit that size.

rdar://problem/23785506

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255570 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
test/MC/ELF/relax-arith.s