Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

bcr 15,0 syntax is not supported on SystemZ #44552

Closed Quuxplusone closed 4 years ago

Quuxplusone commented 4 years ago
Bugzilla Link PR45582
Status RESOLVED FIXED
Importance P enhancement
Reported by Ilya Leoshkevich (iii@linux.ibm.com)
Reported on 2020-04-17 05:14:53 -0700
Last modified on 2020-04-29 11:44:31 -0700
Version trunk
Hardware PC Linux
CC llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
gas accepts the following:

$ cat test.s
bcr 15,0
$ as test.s

however, clang doesn't:

$ clang -c test.s
test.s:1:8: error: invalid operand for instruction
bcr 15,0
       ^

it wants 'bcr 15,%r0' instead.

It would be great to accept what gas accepts here, because e.g. musl libc uses
this syntax: https://git.musl-
libc.org/cgit/musl/tree/arch/s390x/atomic_arch.h?h=v1.2.0#n23
Quuxplusone commented 4 years ago

Fixed in rev. e1de277.