You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apple Clang 3.1 is old and not upstream. If this problem can be reproduced with a modern upstream toolchain, please include complete reproducible cases (source, command line, etc).
Extended Description
Met some build errors when building some assembly code (assembly file, or inline assembly code in C) for iOS, with clang. The errors are:
(1) error: invalid operand for instruction
vpmin.s16 d24, d24
(2) error: invalid operand in inline asm: 'smlawb ${0:r}, ${1:r}, ${2:r}, ${3:r}'
asm("smlawb %r0, %r1, %r2, %r3": "=r"(result): "r"(diff),
(3) error: invalid operand for instruction
__asm __volatile ("ssat %r0, #16, %r1" : "=r"(out16) : "r"(value32));
Please note that most other Neon or ARM instructions could pass, however.
The version of clang I used is: Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn).
The text was updated successfully, but these errors were encountered: