[LLVMbugs] [Bug 7048] New: ARM JIT for armv7 does not emit an immed correctly if its spread of "1"s is greater than 8

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 4 15:32:12 PDT 2010


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

           Summary: ARM JIT for armv7 does not emit an immed correctly if
                    its spread of "1"s is greater than 8
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sliao at google.com
                CC: llvmbugs at cs.uiuc.edu


Nick asked to file armv7 bugs/patches upstream. Here you go:

A simple test case (foo.c) is as follows:

int main() { 
  printf("%d\n", 1001); 
  return 0; 
}

After you generate foo.bc, jitting it on an ARMv7 will result in:

assertion "SoImmVal != -1 && "Not a valid so_imm value!"" failed: file
"lib/Target/ARM/ARMCodeEmitter.cpp"
Stack dump:
0. Running pass 'ARM Machine Code Emitter' on function '@main'
[1] Segmentation fault 

This bug is in a way similar to my bug
http://llvm.org/bugs/show_bug.cgi?id=6265. Fundamentally, the code emission for
ARMv7's movt and movw in LLVM is not finished. I have a 29-line patch for this
bug on lib/Target/ARM/ARMCodeEmitter.cpp. Someone told me that I shouldn't fix
it in lib/Target/ARM/ARMCodeEmitter.cpp, but should fix it in the ".td" file. I
agree that let's see what the community wants, before submitting patches for
armv7 bugs.

-- 
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