[LLVMbugs] [Bug 6902] New: PowerPC JIT fails to resolve 'llvm.memset.*' Intrinsics

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 23 05:36:31 PDT 2010


           Summary: PowerPC JIT fails to resolve 'llvm.memset.*'
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: xerxes at zafena.se
                CC: llvmbugs at cs.uiuc.edu

llvm testcase : cat jit-ppc-memset-test.ll
declare void @llvm.memset.i32(i8*, i8, i32, i32)

define i32 @main() {
 %buffer = alloca [80 x i8]
 %tmp = bitcast [80 x i8]* %buffer to i8*
 call void @llvm.memset.i32(i8* %tmp, i8 14, i32 80,i32 0)
 ret i32 0

FAIL when running on PPC:
./llvm-2.7-shared/Release+Debug/bin/llvm-as jit-ppc-memset-test.ll
./llvm-2.7-shared/Release+Debug/bin/lli < jit-ppc-memset-test.bc
LLVM ERROR: Cannot yet select: 0x100424e8: i32 = ExternalSymbol'memset' [ID=4]

PASSES when running on X86:
xerxes at xerxes-J464X:~$ llvm-as  jit-ppc-memset.ll 
xerxes at xerxes-J464X:~$ lli < jit-ppc-memset.bc 

tested using llvm 2.7 releasebranch

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