[LLVMbugs] [Bug 3555] New: altivec.vaddsbs intrinsic doesn't work at all

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Feb 11 15:43:25 PST 2009


           Summary: altivec.vaddsbs intrinsic doesn't work at all
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: PowerPC
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu

$ cat vaddsbs.ll
declare <16 x i8> @llvm.ppc.altivec.vaddsbs(<16 x i8> %a, <16 x i8>)

define void @foo(<16 x i8> %x) {
  %foo = call <16 x i8> @llvm.ppc.altivec.vaddsbs(<16 x i8> %x, <16 x i8> %x)
  ret void
$ llvm-as vaddsbs.ll
$ llc -march=ppc32 vaddsbs.bc
llc: SelectionDAGBuild.cpp:2925: void
llvm::SelectionDAGLowering::visitTargetIntrinsic(llvm::CallInst&, unsigned
int): Assertion `TLI.isTypeLegal(Op.getValueType()) && "Intrinsic uses a
non-legal type?"' failed.
0   llc       0x000000000110ae70
1   llc       0x000000000110b1c4
2   libc.so.6 0x00007f0049d1d100
3   libc.so.6 0x00007f0049d1d095 gsignal + 53
4   libc.so.6 0x00007f0049d1eaf0 abort + 272
5   libc.so.6 0x00007f0049d162df __assert_fail + 239
6   llc       0x0000000000d7bf9d
llvm::SelectionDAGLowering::visitTargetIntrinsic(llvm::CallInst&, unsigned int)
+ 685
7   llc       0x0000000000d7c7b9
llvm::SelectionDAGLowering::visitIntrinsicCall(llvm::CallInst&, unsigned int) +
8   llc       0x0000000000d810d6
llvm::SelectionDAGLowering::visitCall(llvm::CallInst&) + 244
9   llc       0x0000000000d8cb08 llvm::SelectionDAGLowering::visit(unsigned
int, llvm::User&) + 952
10  llc       0x0000000000d8cbfa
llvm::SelectionDAGLowering::visit(llvm::Instruction&) + 44

The type on the instruction is correct according to the comments in PowerPC.td,
and if it weren't llvm-as would've failed in the verifier. This happens for
march=ppc32 and march=ppc64.

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