[cfe-dev] clang-cl: inline assembler differences
Dennis Luehring via cfe-dev
cfe-dev at lists.llvm.org
Mon Nov 16 20:22:09 PST 2015
using the Windows installer from http://llvm.org/builds/, based on SVN
r252455 (9 November 2015).
i was not able to compile dosbox due to small inline assembler
differences between cl and clang-cl
-------
struct struc_t
{
int value;
int values[2];
};
struc_t struc;
int value;
int values[2];
int main()
{
//"compilation" problems
__asm {mov ebx,[value] } // MSVC: OK, clang: OK
__asm {mov ebx,values[eax] } // MSVC: OK, clang: FAIL
__asm {mov ebx,[struc.value] } // MSVC: OK, clang: FAIL
__asm {mov ebx,struc.values[eax] } // MSVC: OK, clang: FAIL
return 0;
}
-------
btw: clang-cl can now compile all my other test projects (even with
exception handling) out of the box - thx
More information about the cfe-dev
mailing list