--- Comment #6 from fabrice at mocana dot com 2009-02-06 17:16 ---
(In reply to comment #5)
Closing this as invalid. The problem is the interaction of the inline assembly
with the optimization option -funswitch-loops. Will submit a new bug if I can
find a simple way to reproduce it
--- Comment #5 from fabrice at mocana dot com 2009-02-06 04:24 ---
(In reply to comment #4)
> Yes, initializing b[1] makes the problem go away in the snippet. I see this
> problem in a much larger program but I can't reproduce it in a simple context.
> Feel free to cl
--- Comment #4 from fabrice at mocana dot com 2009-02-06 03:48 ---
(In reply to comment #3)
> b[1] is uninitialized.
Yes, initializing b[1] makes the problem go away in the snippet. I see this
problem in a much larger program but I can't reproduce it in a simple context.
Feel
--- Comment #2 from fabrice at mocana dot com 2009-02-06 01:51 ---
Created an attachment (id=17258)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17258&action=view)
generated assembly
note the mulq %rax instruction towards the end.
--
http://gcc.gnu.org/bugzilla/show_
--- Comment #1 from fabrice at mocana dot com 2009-02-06 01:50 ---
Created an attachment (id=17257)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17257&action=view)
preprocessed file
Note that all multiplicands are distinct.
--
http://gcc.gnu.org/bugzilla/show_bug
Severity: normal
Priority: P3
Component: inline-asm
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fabrice at mocana dot com
GCC build triplet: x86_64-suse-linux
GCC host triplet: x86_64-suse-linux
GCC target triplet: x86_64-suse-linux
http://gcc.
--- Comment #1 from fabrice at mocana dot com 2009-02-05 22:05 ---
Created an attachment (id=17253)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17253&action=view)
preprocessed file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39114
ary: wrong register (xmm) used when compiling inline assembly
with msse2 option
Product: gcc
Version: 4.1.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: inline-asm
AssignedTo: unassigned at gcc dot gnu d