public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/98928] [11 regression] ICE when build 638.imagick_s Date: Tue, 02 Feb 2021 10:33:26 +0000 [thread overview] Message-ID: <bug-98928-4-vP8MsRRb4u@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-98928-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98928 --- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- Reduced test-case: $ cat ice.i typedef float MagickRealType; typedef short Quantum; float InterpolateMagickPixelPacket_alpha[1]; int InterpolateMagickPixelPacket_i; void InterpolateMagickPixelPacket(); void main() { InterpolateMagickPixelPacket(); } typedef struct { MagickRealType red, green, blue, opacity, index; } MagickPixelPacket; typedef struct { Quantum blue, green, red, opacity; } PixelPacket; struct _Image { int colorspace; int matte; } GetMagickPixelPacket(MagickPixelPacket *pixel) { pixel->red = pixel->green = pixel->blue = 0.0; } int AlphaBlendMagickPixelPacket(struct _Image *image, PixelPacket *color, Quantum *indexes, MagickPixelPacket *pixel, MagickRealType *alpha) { if (image->matte) { *alpha = pixel->red = pixel->green = pixel->blue = pixel->opacity = color->opacity; pixel->index = 0.0; if (image->colorspace) pixel->index = *indexes; return 0; } *alpha = 1.0 / 0.2; pixel->red = *alpha * color->red; pixel->green = *alpha * color->green; pixel->blue = *alpha * color->blue; pixel->opacity = pixel->index = 0.0; if (image->colorspace && indexes) pixel->index = *indexes; } MagickPixelPacket InterpolateMagickPixelPacket_pixels[1]; PixelPacket InterpolateMagickPixelPacket_p; void InterpolateMagickPixelPacket(struct _Image *image) { Quantum *indexes; for (; InterpolateMagickPixelPacket_i; InterpolateMagickPixelPacket_i++) { GetMagickPixelPacket(InterpolateMagickPixelPacket_pixels + InterpolateMagickPixelPacket_i); AlphaBlendMagickPixelPacket( image, &InterpolateMagickPixelPacket_p + InterpolateMagickPixelPacket_i, indexes + InterpolateMagickPixelPacket_i, InterpolateMagickPixelPacket_pixels + InterpolateMagickPixelPacket_i, InterpolateMagickPixelPacket_alpha + InterpolateMagickPixelPacket_i); } } one needs the following options: gcc -Ofast -march=skylake-avx512 ice.i -fwhole-program
next prev parent reply other threads:[~2021-02-02 10:33 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-02-02 8:03 [Bug tree-optimization/98928] New: " crazylht at gmail dot com 2021-02-02 8:24 ` [Bug tree-optimization/98928] " rguenth at gcc dot gnu.org 2021-02-02 8:58 ` marxin at gcc dot gnu.org 2021-02-02 10:33 ` marxin at gcc dot gnu.org [this message] 2021-02-02 10:33 ` [Bug tree-optimization/98928] [11 regression] ICE when build 638.imagick_s since r11-5969-g3ed472af6bc9f83b marxin at gcc dot gnu.org 2021-02-02 12:43 ` tnfchris at gcc dot gnu.org 2021-02-02 14:58 ` tnfchris at gcc dot gnu.org 2021-02-03 8:09 ` cvs-commit at gcc dot gnu.org 2021-02-03 8:10 ` tnfchris at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-98928-4-vP8MsRRb4u@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).