When converting a test to a cmp to fold a load, use the cmp that has an
authorDan Gohman <gohman@apple.com>
Tue, 18 May 2010 21:42:03 +0000 (21:42 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 18 May 2010 21:42:03 +0000 (21:42 +0000)
commite5efbafdac9cbaaa9cac8a5c405c3bbcbf3f328d
tree16ea3c02963035a887dcdd1ceb678b654502460a
parentb4e876e37e47d950034667c3bc420828d1c44457
When converting a test to a cmp to fold a load, use the cmp that has an
8-bit immediate field rather than one with a wider immediate field.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104064 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/mcinst-lowering-cmp0.ll [new file with mode: 0644]