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

Fixes #88958.

GitOrigin-RevId: 254cdcddd65efe3c045d49853239932ab07121d5
5 files changed