public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "steven at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/21588] New: x86 machine builtins do not have any const/pure attributes set Date: Sun, 15 May 2005 17:50:00 -0000 [thread overview] Message-ID: <20050515175041.21588.steven@gcc.gnu.org> (raw) Consider this snippet: typedef float v4sf __attribute__ ((vector_size (16))); float global; float waste_global (float p[4]) { __builtin_ia32_loadups (p); global += 1.0; } GCC now thinks __builtin_ia32_loadups clobbers global: waste_global (pD.1564) { floatD.28 D.1568; floatD.28 global.0D.1567; # BLOCK 0 # PRED: ENTRY [100.0%] (fallthru,exec) # globalD.1563_6 = V_MAY_DEF <globalD.1563_2>; __builtin_ia32_loadups (pD.1564_1); # VUSE <globalD.1563_6>; global.0D.1567_3 = globalD.1563; D.1568_4 = global.0D.1567_3 + 1.0e+0; # globalD.1563_5 = V_MUST_DEF <globalD.1563_6>; globalD.1563 = D.1568_4; return; # SUCC: EXIT [100.0%] } This is a bit silly, if we encourage people to use builtins instead of inline assembly. -- Summary: x86 machine builtins do not have any const/pure attributes set Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: steven at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org,hubicka at gcc dot gnu dot org,rth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21588
next reply other threads:[~2005-05-15 17:50 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-05-15 17:50 steven at gcc dot gnu dot org [this message] 2005-05-15 18:05 ` [Bug target/21588] " pinskia at gcc dot gnu dot org 2005-05-16 18:14 ` rth at gcc dot gnu dot org 2005-07-28 21:26 ` rth at gcc dot gnu dot org 2005-09-29 4:14 ` pinskia at gcc dot gnu dot org 2005-09-30 10:38 ` hubicka at ucw dot cz 2005-09-30 12:56 ` pinskia at gcc dot gnu dot org 2005-09-30 13:39 ` hubicka at ucw dot cz
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=20050515175041.21588.steven@gcc.gnu.org \ --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).