[X86] Add tests showing failure of combineVectorCompareAndMaskUnaryOp to handle ...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 9 May 2020 13:24:38 +0000 (14:24 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 9 May 2020 13:24:38 +0000 (14:24 +0100)
commitfccd7965657505de85c5d747f1c33638ae916b0f
tree89ca8624a43b1c0b0208c2868aa49b5398c5a56f
parent65399cde4b454badd8888c0b2e59e3e418d46993
[X86] Add tests showing failure of combineVectorCompareAndMaskUnaryOp to handle 'all-bits' general case

For the sint_to_fp(and(X,C)) -> and(X,sint_to_fp(C)) fold, combineVectorCompareAndMaskUnaryOp only matches X against SETCC (with an all-bits result) when really it could accept anything that ComputeNumSignBits says is all-bits.

Noticed while investigating mask promotion issues in PR45808
llvm/test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll