[PATCH] D20019: [PPC] exploitation of new xscmp*, as well as xsmaxcdp and xsmincdp
Ehsan Amiri via llvm-commits
llvm-commits at lists.llvm.org
Wed May 11 17:41:15 PDT 2016
amehsan added inline comments.
================
Comment at: lib/Target/PowerPC/PPCInstrVSX.td:1929-1935
@@ -1923,2 +1928,9 @@
IIC_FPCompare, []>;
+
+ def : Pat <(f64 (selectcc f64:$XC, f64:$XD, f64:$XA, f64:$XB, SETOEQ )),
+ (XXSELS $XA, $XB, (XSCMPEQDP $XC, $XD))>;
+
+ def : Pat <(f64 (selectcc f64:$XC, f64:$XD, f64:$XA, f64:$XB, SETEQ )),
+ (XXSELS $XA, $XB, (XSCMPEQDP $XC, $XD))>;
+
// Vector Compare Not Equal
----------------
I will add f32 to here. For other opcodes, codegen is done from within C++ code, and that handles both data types.
http://reviews.llvm.org/D20019
More information about the llvm-commits
mailing list