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

            Bug ID: 45582
           Summary: bcr 15,0 syntax is not supported on SystemZ
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: SystemZ
          Assignee: unassignedb...@nondot.org
          Reporter: i...@linux.ibm.com
                CC: llvm-bugs@lists.llvm.org

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to