[llvm-bugs] [Bug 48114] New: neon: vqshl scalar functions use wrong type for b parameter

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 8 22:29:41 PST 2020


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

            Bug ID: 48114
           Summary: neon: vqshl scalar functions use wrong type for b
                    parameter
           Product: new-bugs
           Version: 11.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: clang at evan.coeusgroup.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

According to Arm's documentation
(<https://developer.arm.com/architectures/instruction-sets/simd-isas/neon/intrinsics>),
the second parameter should be signed for the following functions:

  vqshlb_u8
  vqshlh_u16
  vqshls_u32
  vqshld_u64

However, clang-11 uses unsigned values.

The vector versions are signed (e.g., vqshl_u8 uses int8x8_t not uint8x8_t),
and passing negative values is completely sensible.

GCC also has the same problem, I'll file a bug there soon.  I don't currently
have access to armcc.

-- 
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/20201109/018cc764/attachment.html>


More information about the llvm-bugs mailing list