From eb647b80ba1a0ab2d9b879cbfdd08cd6805e75c3 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 1 Oct 2016 10:41:52 +0200 Subject: [PATCH] sse.md (): Add FALLTHRU comments. * config/i386/sse.md (): Add FALLTHRU comments. Simplify asserts, remove unnecessary conditions. Formatting fixes. (*3): Likewise. From-SVN: r240694 --- gcc/ChangeLog | 7 +++ gcc/config/i386/sse.md | 97 ++++++++++++++++++++---------------------- 2 files changed, 53 insertions(+), 51 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c2a590c117b..d432fe08e04 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-10-01 Jakub Jelinek + + * config/i386/sse.md (): Add FALLTHRU + comments. Simplify asserts, remove unnecessary conditions. + Formatting fixes. + (*3): Likewise. + 2016-09-30 Jakub Jelinek * doc/invoke.texi (-Wregister): Document. diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 7e718a076f6..235969ab40e 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -11393,41 +11393,40 @@ { case MODE_XI: gcc_assert (TARGET_AVX512F); + /* FALLTHRU */ case MODE_OI: - gcc_assert (TARGET_AVX2 || TARGET_AVX512VL); + gcc_assert (TARGET_AVX2); + /* FALLTHRU */ case MODE_TI: - gcc_assert (TARGET_SSE2 || TARGET_AVX512VL); + gcc_assert (TARGET_SSE2); switch (mode) - { - case V16SImode: - case V8DImode: - if (TARGET_AVX512F) - { - tmp = "p"; - break; - } - case V8SImode: - case V4DImode: - case V4SImode: - case V2DImode: - tmp = TARGET_AVX512VL ? "p" : "p"; - break; - default: - gcc_unreachable (); - } + { + case V16SImode: + case V8DImode: + tmp = "p"; + break; + case V8SImode: + case V4DImode: + case V4SImode: + case V2DImode: + tmp = TARGET_AVX512VL ? "p" : "p"; + break; + default: + gcc_unreachable (); + } break; - case MODE_V8SF: + case MODE_V8SF: gcc_assert (TARGET_AVX); - case MODE_V4SF: + case MODE_V4SF: gcc_assert (TARGET_SSE); gcc_assert (!); tmp = "ps"; break; - default: + default: gcc_unreachable (); - } + } switch (which_alternative) { @@ -11489,46 +11488,42 @@ { case MODE_XI: gcc_assert (TARGET_AVX512F); + /* FALLTHRU */ case MODE_OI: - gcc_assert (TARGET_AVX2 || TARGET_AVX512VL); + gcc_assert (TARGET_AVX2); + /* FALLTHRU */ case MODE_TI: - gcc_assert (TARGET_SSE2 || TARGET_AVX512VL); + gcc_assert (TARGET_SSE2); switch (mode) - { - case V64QImode: - case V32HImode: - if (TARGET_AVX512F) - { - tmp = "p"; - ssesuffix = "q"; - break; - } - case V32QImode: - case V16HImode: - case V16QImode: - case V8HImode: - if (TARGET_AVX512VL || TARGET_AVX2 || TARGET_SSE2) - { - tmp = "p"; - ssesuffix = TARGET_AVX512VL ? "q" : ""; - break; - } - default: - gcc_unreachable (); - } + { + case V64QImode: + case V32HImode: + tmp = "p"; + ssesuffix = "q"; + break; + case V32QImode: + case V16HImode: + case V16QImode: + case V8HImode: + tmp = "p"; + ssesuffix = TARGET_AVX512VL ? "q" : ""; + break; + default: + gcc_unreachable (); + } break; - case MODE_V8SF: + case MODE_V8SF: gcc_assert (TARGET_AVX); - case MODE_V4SF: + case MODE_V4SF: gcc_assert (TARGET_SSE); tmp = "ps"; ssesuffix = ""; break; - default: + default: gcc_unreachable (); - } + } switch (which_alternative) { -- 2.30.2