public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/43860] New: Inline asm doesn't respect q clobbers
@ 2010-04-22 23:18 lessen42+gcc at gmail dot com
2010-04-22 23:21 ` [Bug inline-asm/43860] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: lessen42+gcc at gmail dot com @ 2010-04-22 23:18 UTC (permalink / raw)
To: gcc-bugs
Source:
void foo(float *a, float *b) {
__asm__ volatile (
"vld1.32 {d8[],d9[]}, [%1,:32] \n\t"
"vst1.32 {q4}, [%0,:128] \n\t"
:: "r"(a), "r"(b)
: "q4"
);
}
arm-none-linux-gnueabi-gcc-4.4.3 -O3 -mcpu=cortex-a8 -mfpu=neon
-mfloat-abi=softfp neonasm.c -S
foo:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
fstmfdd sp!, {d8}
#APP
@ 2 "neonasm.c" 1
vld1.32 {d8[],d9[]}, [r1,:32]
vst1.32 {q4}, [r0,:128]
@ 0 "" 2
fldmfdd sp!, {d8}
bx lr
Both d8 and d9 should be saved, not just d8.
--
Summary: Inline asm doesn't respect q clobbers
Product: gcc
Version: 4.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: inline-asm
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lessen42+gcc at gmail dot com
GCC build triplet: x86_64-apple-darwin
GCC host triplet: x86_64-apple-darwin
GCC target triplet: arm-none-linux-gnueabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43860
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug inline-asm/43860] Inline asm doesn't respect q clobbers
2010-04-22 23:18 [Bug inline-asm/43860] New: Inline asm doesn't respect q clobbers lessen42+gcc at gmail dot com
@ 2010-04-22 23:21 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-04-22 23:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2010-04-22 23:21 -------
*** This bug has been marked as a duplicate of 43440 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43860
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-22 23:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-22 23:18 [Bug inline-asm/43860] New: Inline asm doesn't respect q clobbers lessen42+gcc at gmail dot com
2010-04-22 23:21 ` [Bug inline-asm/43860] " pinskia at gcc dot gnu dot 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).