[llvm-bugs] [Bug 51521] New: error: invalid type '_ExtInt(8)' in asm output

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 18 06:13:25 PDT 2021


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: unassignedclangbugs at nondot.org
          Reporter: pedro.lamarao at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210818/21b47210/attachment.html>


More information about the llvm-bugs mailing list