search for: 4pmolc

Displaying 2 results from an estimated 2 matches for "4pmolc".

2018 Nov 26
2
BUGS in code generated for target i386-win32
...our assumptions wrong: the function call is NOT inlined any more, but its arguments are STILL not set up at all ... and the variable lfsr STILL not initialized. If the function is declared only, but not defined, then the compiler sets the arguments up before the call: see <https://godbolt.org/z/4pmOlC> >> additionally it holds the second argument with the __fastcall calling >> convention, so the constant 0x04C11DB7 MUST be loaded into EDX before >> label LBB1_1: > > This is the same unused-as-far-as-the-compiler-knows thing as the first two. OUCH! <https://godbol...
2018 Nov 26
3
BUGS in code generated for target i386-win32
Hi @ll, LLVM/clang generates wrong code for the following program (see <https://godbolt.org/z/UZrrkG>): --- sample.c --- unsigned __fastcall lfsr32(unsigned argument, unsigned polynomial) { __asm { add ecx, ecx ; ecx = argument << 1 sbb eax, eax ; eax = CF ? -1 : 0 and eax, edx ; eax = CF ? polynomial : 0 xor eax, ecx ; eax = (argument <<