search for: comparisonvalu

Displaying 1 result from an estimated 1 matches for "comparisonvalu".

Did you mean: comparisonvalue
2010 Feb 27
3
[LLVMdev] Object layout bug for C++ derived class with long long integer
...: Foo { long long fourth; } I generate JIT code to access 'fourth' from a Foo * as follows: BarPtr = CreateBitCast(FooPtr, BarPtrTy); FourthPtr = CreateConstGEP2_32(BarPtr, 0, 3); FourthValue = CreateLoad(FourthPtr); ConstantValue = ConstantInt::get(FourthValue->getType(), 0x2A4); ComparisonValue = CreateICmpEQ(FourthValue, ConstantValue); This appears to work on Linux and MacOSX with LLVM 2.6 and LLVM 2.7. On Windows, however, where I only have LLVM 2.6 with MINGW/MSYS, the generated code looks like this: 0x13df70b3: mov $0x2a4,%ecx 0x13df70b8: xor 0xc(%edi),%ecx 0x13df70bb: or...