From ff4590bb91c80f119dfeb465bf41441d35ef49d2 Mon Sep 17 00:00:00 2001 From: liuhongt Date: Wed, 16 Aug 2023 10:07:15 +0800 Subject: [PATCH] Support -m[no-]gather to enable/disable vectorization for all gather instructions gcc/ChangeLog: * config/i386/i386.opt: Add new option mgather. --- gcc/config/i386/i386.opt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt index 098a9ca20731..9381025b667d 100644 --- a/gcc/config/i386/i386.opt +++ b/gcc/config/i386/i386.opt @@ -1194,3 +1194,7 @@ Emit GNU_PROPERTY_X86_ISA_1_NEEDED GNU property. mmwait Target Mask(ISA2_MWAIT) Var(ix86_isa_flags2) Save Support MWAIT and MONITOR built-in functions and code generation. + +mgather +Target Alias(mtune-ctrl=, use_gather, ^use_gather) +Enable vectorization for gather instruction. -- 2.47.2