Skip to content

Commit

Permalink
Fixed #178
Browse files Browse the repository at this point in the history
  • Loading branch information
kobalicek committed Nov 7, 2018
1 parent 673dcef commit 771d66b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/asmjit/x86/x86regalloc.cpp
Expand Up @@ -1081,13 +1081,13 @@ struct SArgData {
};

static ASMJIT_INLINE bool X86RAPass_mustConvertSArg(X86RAPass* self, uint32_t dstTypeId, uint32_t srcTypeId) noexcept{
bool dstFloatSize = dstTypeId == TypeId::kF32 ? 4 :
dstTypeId == TypeId::kF64 ? 8 : 0;
uint32_t dstFloatSize = dstTypeId == TypeId::kF32 ? 4 :
dstTypeId == TypeId::kF64 ? 8 : 0;

bool srcFloatSize = srcTypeId == TypeId::kF32 ? 4 :
srcTypeId == TypeId::kF32x1 ? 4 :
srcTypeId == TypeId::kF64 ? 8 :
srcTypeId == TypeId::kF64x1 ? 8 : 0;
uint32_t srcFloatSize = srcTypeId == TypeId::kF32 ? 4 :
srcTypeId == TypeId::kF32x1 ? 4 :
srcTypeId == TypeId::kF64 ? 8 :
srcTypeId == TypeId::kF64x1 ? 8 : 0;

if (dstFloatSize && srcFloatSize)
return dstFloatSize != srcFloatSize;
Expand Down

0 comments on commit 771d66b

Please sign in to comment.