]> granicus.if.org Git - llvm/commit
[x86] avoid adc/sbb assert when both sides of add are zexted (PR32316)
authorSanjay Patel <spatel@rotateright.com>
Fri, 17 Mar 2017 17:27:31 +0000 (17:27 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 17 Mar 2017 17:27:31 +0000 (17:27 +0000)
commitec1b6801a19f0eef723c97eb80122b2302b5200f
tree35bbe450594ab7ed4432a669caa3d06c66580c6d
parent63994176b43bf2e1328d1741f899bf685fabf22b
[x86] avoid adc/sbb assert when both sides of add are zexted (PR32316)

As noted in the comment, we might want to account for this case,
but I didn't look at what that would mean for the asm.

I'm also not sure why this only reproduces with avx512, but I'm
putting a conservative fix in for now to avoid the crash.

Also, if both sides of an add are zexted, shouldn't we shrink that add?

https://bugs.llvm.org/show_bug.cgi?id=32316

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