public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/92436] SIMD integer subtract with constant always becomes add
       [not found] <bug-92436-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-21 23:14 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2021-08-21 23:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92436

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|x86, aarch                  |x86, aarch64

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Testcases:
x86:
#include <x86intrin.h>
__m128i fn(__m128i a) {
        return _mm_or_si128(
                _mm_sub_epi8(a, _mm_set1_epi8(99)),
                _mm_set1_epi8(99)
        );
}


aarch64:
#include <arm_neon.h>
uint8x16_t fn(uint8x16_t a) {
        return vorrq_u8(
                vsubq_u8(a, vdupq_n_u8(99)),
                vdupq_n_u8(99)
        );
}

Note aarch64 is a regression from GCC 5.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-21 23:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-92436-4@http.gcc.gnu.org/bugzilla/>
2021-08-21 23:14 ` [Bug middle-end/92436] SIMD integer subtract with constant always becomes add pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).