[X86] Add relaxtion logic for SBB instructions.
authorQuentin Colombet <qcolombet@apple.com>
Tue, 15 Dec 2015 00:09:23 +0000 (00:09 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 15 Dec 2015 00:09:23 +0000 (00:09 +0000)
commite66016e439947b71345842624a45c31b07f1f2d4
tree5a6c9669bdb8140bff6e4ae7f8298ee452063f50
parentefbe9367db777cb93b17de2e64b4c3df6d607fd4
[X86] Add relaxtion logic for SBB 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@255583 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
test/MC/ELF/relax-arith.s