[llvm-bugs] [Bug 30930] New: Assertion failed: isValidGCCRegisterName(Name) && "Invalid register passed in", file E:\llvm\tools\clang\lib\Basic\Targe tInfo.cpp, line 415

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 7 02:58:05 PST 2016


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

            Bug ID: 30930
           Summary: Assertion failed: isValidGCCRegisterName(Name) &&
                    "Invalid register passed in", file
                    E:\llvm\tools\clang\lib\Basic\Targe tInfo.cpp, line
                    415
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: amine.khaldi at reactos.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

This was revealed by
https://github.com/reactos/reactos/blob/master/reactos/ntoskrnl/ke/i386/cpu.c
and then reduced to:

void foo(void)
{
    __asm mov cr2, eax;
}

cl /c compiles it without errors, but clang-cl /c emits:

Assertion failed: isValidGCCRegisterName(Name) && "Invalid register passed in",
file E:\llvm\tools\clang\lib\Basic\TargetInfo.cpp, line 415
Wrote crash dump file "c:\Temp\clang-cl.exe-5c1a2a.dmp"
0x013BD787 (0x00000016 0x00000007 0x00000007 0x00000003)
0x672264D2 (0x02C547F8 0x02C54738 0x02F48700 0x0000008C), abort() + 0x32
bytes(s)
0x6722824F (0x0000019F 0x02C547F8 0x02C54738 0x02F48700),
_get_wide_winmain_command_line() + 0xCDF bytes(s)
0x6722816D (0x0000019F 0x67228290 0x02F88128 0x00C9CAD0),
_get_wide_winmain_command_line() + 0xBFD bytes(s)
0x672275E9 (0x0000019F 0x025FD4A5 0x00C9D1F0 0x025FD4A5),
_get_wide_winmain_command_line() + 0x79 bytes(s)
0x672282A6 (0x02C547F8 0x02C54738 0x0000019F 0x02F88098), _wassert() + 0x16
bytes(s)
0x025FD4A5 (0x02F87FB0 0x02F822AA 0x02F87A3C 0x02F87F88)
0x02371ECF (0x0000003A 0x00C9D298 0x00C9D2A8 0x00C9D2B8)
0x02371AEE (0x00C9D368 0x02F87A60 0x02F87A60 0x00C9D534)
0x01FE9BAE (0x02FBA7F8 0x02F87F88 0x00000000 0x02FB6F58)
0x01E2BCF2 (0x00000000 0x02F87F88 0x02FB7A00 0x00000000)
clang-cl.exe: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 4.0.0 (trunk 286045)
Target: i686-pc-windows-msvc
Thread model: posix

-- 
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/20161107/d528e55d/attachment.html>


More information about the llvm-bugs mailing list