[llvm-bugs] [Bug 42075] New: SystemZ Z13 Unsupported vector argument or return type

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 30 13:51:22 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42075

            Bug ID: 42075
           Summary: SystemZ Z13 Unsupported vector argument or return type
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: SystemZ
          Assignee: unassignedbugs at nondot.org
          Reporter: ajwock at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 22053
  --> https://bugs.llvm.org/attachment.cgi?id=22053&action=edit
A file that, when run, should exemplify the bug.

For some reason, when llc is run with options -mtriple=s390x -mcpu=z13 (without
the second argument, the issue does not occur), llc prints "LLVM ERROR:
Unsupported vector argument or return type" if the input file contains any
function whose arguments or return types are, particularly v3f64, but also
generally any vector type that is considered to be an extended type, such as
v6f32.  

It fails at an assert at VerifyVectorType in
lib/Target/SystemZ/SystemZISelLowering.cpp.  As far as I can tell, the code
seems to run to completion and produce correct assembly as long as this assert
is simply skipped in those cases.  However, there is a comment indicating that
a single element vector containing a 128 bit type is not supporting, suggesting
that the assert was meant to catch this case but also ends up catching many
other cases that it is not supposed to.

I have attached a test file.

-- 
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/20190530/534511b0/attachment.html>


More information about the llvm-bugs mailing list