From: Kyrylo Tkachov <[email protected]>

I gave the saturating narrowing optab names a new lower case
vnarrowq mode attribute, but Vnarrowq already maps the same three modes
to the same lower case strings, so either spells the same pattern name.

Use the one that was already there.
Bootstrapped and tested on aarch64-none-linux-gnu.
Pushing to trunk as obvious.

gcc/ChangeLog:

        * config/aarch64/iterators.md (vnarrowq): Delete.
        * config/aarch64/aarch64-simd.md
        (<sat_trunc_op>trunc<mode><vnarrowq>2): Rename to...
        (<sat_trunc_op>trunc<mode><Vnarrowq>2): ... this.

Signed-off-by: Kyrylo Tkachov <[email protected]>
---
 gcc/config/aarch64/aarch64-simd.md | 2 +-
 gcc/config/aarch64/iterators.md    | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/gcc/config/aarch64/aarch64-simd.md 
b/gcc/config/aarch64/aarch64-simd.md
index e91692ce486..f9b2fd6b2db 100644
--- a/gcc/config/aarch64/aarch64-simd.md
+++ b/gcc/config/aarch64/aarch64-simd.md
@@ -6173,7 +6173,7 @@
 
 ;; The saturating narrowing conversion that the vectoriser asks for through
 ;; IFN_SAT_TRUNC.  The RTL is what aarch64_<su>qmovn<mode> below matches.
-(define_expand "<sat_trunc_op>trunc<mode><vnarrowq>2"
+(define_expand "<sat_trunc_op>trunc<mode><Vnarrowq>2"
   [(set (match_operand:<VNARROWQ> 0 "register_operand")
        (SAT_TRUNC:<VNARROWQ> (match_operand:VQN 1 "register_operand")))]
   "TARGET_SIMD"
diff --git a/gcc/config/aarch64/iterators.md b/gcc/config/aarch64/iterators.md
index 1bc20d6151c..635a57265e8 100644
--- a/gcc/config/aarch64/iterators.md
+++ b/gcc/config/aarch64/iterators.md
@@ -2145,9 +2145,6 @@
                            (DI   "v2si")])
 
 ;; Narrowed double-modes for VQN (Used for XTN).
-;; Lower case VNARROWQ, for the sstrunc and ustrunc optab names.
-(define_mode_attr vnarrowq [(V8HI "v8qi") (V4SI "v4hi") (V2DI "v2si")])
-
 (define_mode_attr VNARROWQ [(V8HI "V8QI") (V4SI "V4HI")
                            (V2DI "V2SI")
                            (DI   "SI")   (SI   "HI")
-- 
2.50.1 (Apple Git-155)

Reply via email to