search for: eax3

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

Did you mean: eax
2013 Mar 12
0
[LLVMdev] help decompiling x86 ASM to LLVM IR
...e CFLAGS register as just another register which is manipulated as a side effect of instructions and letting a dead-code elimination pass eliminate extraneous uses. A rough equivalent for llvm IR in this could would be %cf = icmp lt i32 1, %edi %eax2 = sub i32 %eax, %eax %1 = zext i1 %cf to i32 %eax3 = sub i32 %eax2, %1 %eax4 = and i32 0xffffffdf, %eax3 %eax5 = add i32 0x61, %eax4 > The aim is to be able to then recompile it to maybe a different target. > The aim is to go from binary -> LLVM IR -> binary for cases where the > C source code it not available or lost. I know qemu c...
2013 Mar 12
6
[LLVMdev] help decompiling x86 ASM to LLVM IR
Hi, I am looking to decompile x86 ASM to LLVM IR. The original C is this: int test61 ( unsigned value ) { int ret; if (value < 1) ret = 0x40; else ret = 0x61; return ret; } It compiles with GCC -O2 to (rather cleverly removing any branches): 0000000000000000 <test61>: 0: 83 ff 01 cmp $0x1,%edi 3: