[llvm-bugs] [Bug 39730] New: s390x/systemz: ctpop.v16i8 "has incorrect return type"

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 20 11:57:35 PST 2018


            Bug ID: 39730
           Summary: s390x/systemz: ctpop.v16i8 "has incorrect return type"
           Product: new-bugs
           Version: trunk
          Hardware: Other
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: danielwatson311 at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Getting this error when linking to LLVM's ctpop intrinsic on s390x:

Intrinsic has incorrect return type!
void (<16 x i8>*, <16 x i8>*)* @llvm.ctpop.v16i8
LLVM ERROR: Broken function found, compilation aborted!

With the following code (Rust):

    #![feature(repr_simd, link_llvm_intrinsics, simd_ffi)]

    pub struct u8x16(u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8,
u8, u8,);

    extern {
        #[link_name = "llvm.ctpop.v16i8"]
        fn ctpop_u8x16(x: u8x16) -> u8x16;

    pub fn ctpop(x: u8x16) -> u8x16 {
        unsafe { ctpop_u8x16(x) }

Full code: https://github.com/rust-lang-nursery/packed_simd/pull/190

I attempted to find a minimal example but found none:

LLVM: 8.0.0svn

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181120/af7665d2/attachment-0001.html>

More information about the llvm-bugs mailing list