mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
For PR970:
Clean up handling of isFloatingPoint() and dealing with PackedType. Patch by Gordon Henriksen! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33415 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1498,7 +1498,7 @@ GenericValue Interpreter::executeSIToFPInst(Value *SrcVal, const Type *DstTy,
|
||||
const IntegerType *SITy = cast<IntegerType>(SrcTy);
|
||||
unsigned SBitWidth = SITy->getBitWidth();
|
||||
assert(SBitWidth <= 64 && "Integer types > 64 bits not supported");
|
||||
assert(DstTy->isFloatingPoint() && "Invalid UIToFP instruction");
|
||||
assert(DstTy->isFloatingPoint() && "Invalid SIToFP instruction");
|
||||
int64_t Converted = 0;
|
||||
if (SBitWidth == 1)
|
||||
Converted = 0LL - Src.Int1Val;
|
||||
|
Reference in New Issue
Block a user