]> granicus.if.org Git - llvm/commit
[X86] convertToThreeAddress, make sure second operand of SUB32ri is really an immedia...
authorCraig Topper <craig.topper@intel.com>
Tue, 1 Oct 2019 21:55:55 +0000 (21:55 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 1 Oct 2019 21:55:55 +0000 (21:55 +0000)
commite9fa1c7882aeb90a0fff3c0a4aba35dcaf6e62e5
treee294defdae18db4f7948303aed9549e3e5620242
parent522eca6a11ffbd30c8c273a196a83663b6eea4e3
[X86] convertToThreeAddress, make sure second operand of SUB32ri is really an immediate before calling getImm().

It might be a symbol instead. We can't fold those since we can't
negate them.

Similar for other SUB with immediates.

Fixes PR43529.

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