NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-powerpc/45731: Upper 32-bit of r5,r7,r9 are not stored by vec_load_from_vreg()



>Number:         45731
>Category:       port-powerpc
>Synopsis:       Upper 32-bit of r5,r7,r9 are not stored by vec_load_from_vreg()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-powerpc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 22 01:00:01 +0000 2011
>Originator:     Hitoshi Koike
>Release:        Not a NetBSD user
>Organization:
Not a NetBSD user
>Environment:
Not applicable
>Description:
Looking at vec_load_from_vreg() function in 
http://ftp.netbsd.org/pub/NetBSD/misc/repositories/cvsroot/src/sys/arch/powerpc/booke/spe_subr.S,v
 and found the following suspicious lines.

---
                evmergelo %r19,%r8,%r19
        evldw %r6,(6 << 2)(%r3)
                evmergelo %r17,%r6,%r17
        evldw %r4,(4 << 2)(%r3)
                evmergelo %r15,%r4,%r15
---


>How-To-Repeat:
Unknown
>Fix:
Correct the lines like below.

---
                evmergelo %r9,%r8,%r9
        evldw %r6,(6 << 2)(%r3)
                evmergelo %r7,%r6,%r7
        evldw %r4,(4 << 2)(%r3)
                evmergelo %r5,%r4,%r5
---



Home | Main Index | Thread Index | Old Index