[X86] Create all-one vector(v8i32) for TESTC(X,~X) == TESTC(X,-1) if X is v8f32
authorBing1 Yu <bing1.yu@intel.com>
Tue, 18 Apr 2023 17:27:05 +0000 (01:27 +0800)
committerBing1 Yu <bing1.yu@intel.com>
Tue, 18 Apr 2023 17:27:56 +0000 (01:27 +0800)
commitdd3eb53275ed30dd73e210d9181849ddd2869590
tree79008f8d928818c1b1b91d8957efddcf26bdaef2
parent8d2e9fc8553c91b1f22e82ffc2c00020f40bb0a2
[X86] Create all-one vector(v8i32) for TESTC(X,~X) == TESTC(X,-1) if X is v8f32

getAllOnesConstant can only take v8i32 instead of v8f32

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D148608
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/combine-testpd.ll
llvm/test/CodeGen/X86/combine-testps.ll