We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3745a2e commit 18e35d8Copy full SHA for 18e35d8
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMatInt.cpp
@@ -82,9 +82,9 @@ LoongArchMatInt::InstSeq LoongArchMatInt::generateInstSeq(int64_t Val) {
82
TmpVal1 = Insts[1].Imm;
83
if (N == 3)
84
break;
85
- TmpVal2 = Insts[3].Imm << 52 | TmpVal1;
+ TmpVal2 = static_cast<uint64_t>(Insts[3].Imm) << 52 | TmpVal1;
86
}
87
- TmpVal1 |= Insts[0].Imm << 12;
+ TmpVal1 |= static_cast<uint64_t>(Insts[0].Imm) << 12;
88
89
case LoongArch::ORI:
90
case LoongArch::ADDI_W:
0 commit comments