[clang] [llvm] [X86][AVX10.2] Support saturated converts (PR #102592)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 12 08:31:00 PDT 2024


================
@@ -324,7 +324,14 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
     }
   }
 
-  if (Subtarget.hasSSE2()) {
+  if (Subtarget.hasAVX10_2() || Subtarget.hasAVX10_2_512()) {
----------------
phoebewang wrote:

Check `Subtarget.hasAVX10_2()` is enough.

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


More information about the cfe-commits mailing list