[llvm-bugs] [Bug 50608] New: PowerPC: 'Z' inline assembly constraint not supported

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 7 19:55:20 PDT 2021


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

            Bug ID: 50608
           Summary: PowerPC: 'Z' inline assembly constraint not supported
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: tstellar at redhat.com
                CC: llvm-bugs at lists.llvm.org, nemanja.i.ibm at gmail.com

cat test.c

void func(int myarg)
{
    asm volatile(" .asciz \"%n[S1]@%I[A1]%[A1]\" " :: [S1] "n" (1), [A1] "nZr"
((myarg)));
}

int main(int argc, char **argv)
{
    func(0);
    return 0;
}

./bin/clang --target=ppc64le test.c

test.c:10:18: error: invalid operand in inline asm: ' .asciz "${0:n}@${1:I}$1"
'


If I remove the 'Z constraint the test case compiles successfully. This
constraint is supported by gcc:
https://gcc.gnu.org/onlinedocs/gcc/Machine-Constraints.html

-- 
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/20210608/6d0ca4ff/attachment.html>


More information about the llvm-bugs mailing list