search for: x9r9w7

Displaying 2 results from an estimated 2 matches for "x9r9w7".

2018 Nov 26
2
BUGS in code generated for target i386-win32
...s lack of use and decided to completely eliminate the > lfsr variable. 1. see above! 2. add "__declspec(noinline)" to the function definition ... and notice that the compiler STILL does NOT setup ANY of EAX, ECX and EDX before the function call! See <https://godbolt.org/z/X9R9w7>, which again proves your assumption WRONG. > You can see this in LLVM IR if you add "-emit-llvm -g0" to the godbolt > command-line. The loop *only* contains a counter and the lonely asm > block > >> BUG #3: the compiler allocates EDX for the variable "perio...
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 <<