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

            Bug ID: 51521
           Summary: error: invalid type '_ExtInt(8)' in asm output
           Product: clang
           Version: 12.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

Expected:

Clang assembler knows how to bind _ExtInt variables and extended assembler
parameters.

Current:

Clang rejects _ExtInt in extended assembler parameters.

This function:

void out1 ( _ExtInt(16) port, _ExtInt(8) data )
{
    __asm__ ( "outb %0, %1" : : "a"(data), "Nd"(port) : );
}

raises this error:

<source>:3:37: error: invalid type '_ExtInt(8)' in asm output
    __asm__ ( "outb %0, %1" : : "a"(data), "Nd"(port) : );


Test case in Godbolt with Clang trunk: https://godbolt.org/z/xdx5TMPd8

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

Reply via email to