[LLVMbugs] [Bug 8366] New: -march=native on i5 emits unaligned movaps

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 12 13:27:02 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=8366

           Summary: -march=native on i5 emits unaligned movaps
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: astrange at ithinksw.com
                CC: llvmbugs at cs.uiuc.edu


Using llvm r116113/clang r116082. The attached file contains several unaligned
movaps when compiled with -march=native on i5, but not without it.

> clang -O3 -march=native -S demux_movaps_unaligned.i -v
clang version 2.9 (git://repo.or.cz/clang.git
43fb14bb9982c4c59cfd0d9e195e52145c3f62ef)
Target: x86_64-apple-darwin10
Thread model: posix
 "/usr/local/llvm/bin/clang" -cc1 -triple x86_64-apple-darwin10.0.0 -S
-disable-free -main-file-name demux_movaps_unaligned.i -pic-level 1
-mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu corei7
-target-linker-version 97.14 -v -resource-dir /usr/local/llvm/lib/clang/2.9 -O3
-ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks
-fdiagnostics-show-option -fcolor-diagnostics -o demux_movaps_unaligned.s -x
cpp-output demux_movaps_unaligned.i
clang -cc1 version 2.9 based upon llvm 2.9svn hosted on x86_64-apple-darwin10
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/llvm/lib/clang/2.9/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
> grep movaps demux_movaps_unaligned.s

    movaps    %xmm0, -120(%rbp)
    movaps    %xmm0, -136(%rbp) <--
    movaps    %xmm0, -152(%rbp) <--
    movaps    %xmm0, -424(%rbp)
    movaps    %xmm0, -440(%rbp)
    movaps    %xmm0, -456(%rbp)
    movaps    %xmm0, -280(%rbp)
    movaps    %xmm0, -296(%rbp)
    movaps    %xmm0, -312(%rbp)
    movaps    %xmm0, -136(%rbp)
    movaps    %xmm0, -152(%rbp)
    movaps    %xmm0, -168(%rbp) <--
    movaps    %xmm0, (%rax)

This causes mplayer to immediately crash in new_demuxer() when compiled with
-march=native.

Un-minimized source attached.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list