OSDN Git Service

[x86] avoid printing unnecessary sign bits of hex immediates in asm comments (PR20347)
authorSanjay Patel <spatel@rotateright.com>
Sat, 28 May 2016 14:58:37 +0000 (14:58 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 28 May 2016 14:58:37 +0000 (14:58 +0000)
commitaea5485cfeab7a1d49643bad7dca4a072092b30b
treec80ed875d890b32a099c9ae4dde049ab63d3eb66
parentfe422064d97553044230c76f012bf196b7f61f20
[x86] avoid printing unnecessary sign bits of hex immediates in asm comments (PR20347)

It would be better to check the valid/expected size of the immediate operand, but this is
generally better than what we print right now.

Differential Revision: http://reviews.llvm.org/D20385

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271114 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
test/CodeGen/X86/2011-10-21-widen-cmp.ll
test/CodeGen/X86/avx512-cmp.ll
test/CodeGen/X86/bitreverse.ll
test/CodeGen/X86/pr16360.ll
test/CodeGen/X86/rem.ll
test/CodeGen/X86/sad.ll
test/CodeGen/X86/sse-intrinsics-fast-isel.ll
test/CodeGen/X86/vec_fneg.ll
test/CodeGen/X86/vector-bitreverse.ll
test/CodeGen/X86/vector-idiv-sdiv-512.ll
test/MC/X86/imm-comments.s