Recommit "[X86] Simplify some `pternlog` intrinsics" (2nd Try)
authorNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 4 Apr 2023 05:13:43 +0000 (00:13 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 4 Apr 2023 15:34:31 +0000 (10:34 -0500)
commit443825c517c862920756bc2c797e5426df57ce73
treee859ec0dcc3240037ba7a2e1b2387d43b1e19985
parent62bfb0b14ce979c3b73e73dd70c6d76e51cb6071
Recommit "[X86] Simplify some `pternlog` intrinsics" (2nd Try)

Original location of the unittests was Transforms/InstCombine/X86
which caused an issue as non-x86 targets ended up with a dependency on
X86 which isn't right.

Moved the unit tests to Target/X86 so should be good now.

Differential Revision: https://reviews.llvm.org/D145220
llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
llvm/test/CodeGen/X86/ternlog.ll
llvm/test/Transforms/InstCombine/X86/x86-ternlog.ll
llvm/unittests/Target/X86/CMakeLists.txt
llvm/unittests/Target/X86/TernlogTest.cpp [new file with mode: 0644]