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: unassignedb...@nondot.org
          Reporter: tstel...@redhat.com
                CC: llvm-bugs@lists.llvm.org, nemanja.i....@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to