[llvm] [PowerPC] replace vector compare equal to with vector compare greater than (PR #150422)

Lei Huang via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 29 09:02:55 PDT 2025


================
@@ -1031,7 +1031,7 @@ define <4 x float> @hoo3_fmf(<4 x float> %a) #1 {
 ; CHECK-P7-NEXT:    vmaddfp 5, 5, 0, 3
 ; CHECK-P7-NEXT:    vmaddfp 3, 5, 4, 3
 ; CHECK-P7-NEXT:    vxor 4, 4, 4
-; CHECK-P7-NEXT:    vcmpeqfp 2, 2, 4
+; CHECK-P7-NEXT:    vcmpgefp 2, 4, 2
----------------
lei137 wrote:

This look a bit suspicious to me.  This patch is supposed to replace `not equal` compares (vcmpeqfp+vnot) against zero vectors with either a `greater or equal` or `less or equal` instruction.  However, here it is replacing a `vcmpeqfp` directly with `vcmpgefp` the `vnot` is still there. 

https://github.com/llvm/llvm-project/pull/150422


More information about the llvm-commits mailing list