[llvm] [X86] ptest is commutable as long as only the Z flag is used. (PR #88969)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 18 03:15:51 PDT 2024


================
@@ -5737,6 +5755,13 @@ multiclass avx_bittest<bits<8> opc, string OpcodeStr, RegisterClass RC,
             Sched<[sched.Folded, sched.ReadAfterFold]>, VEX;
 }
 
+// ptest is commutable if only the Z flag is used. If the C flag is used,
----------------
Alcaro wrote:

I'd spell it `testps/testpd` or `testpX`

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


More information about the llvm-commits mailing list