JitArm64_LoadStore: Explicitly annotate switch fallthrough cases

Makes it explicit that these are intentional. Also prevents compiler
warnings.
This commit is contained in:
Lioncash 2020-12-30 14:36:41 -05:00
parent 8a3b14d7dc
commit fa63367738

View file

@ -297,21 +297,25 @@ void JitArm64::lXX(UGeckoInstruction inst)
{ {
case 55: // lwzux case 55: // lwzux
update = true; update = true;
[[fallthrough]];
case 23: // lwzx case 23: // lwzx
flags |= BackPatchInfo::FLAG_SIZE_32; flags |= BackPatchInfo::FLAG_SIZE_32;
break; break;
case 119: // lbzux case 119: // lbzux
update = true; update = true;
[[fallthrough]];
case 87: // lbzx case 87: // lbzx
flags |= BackPatchInfo::FLAG_SIZE_8; flags |= BackPatchInfo::FLAG_SIZE_8;
break; break;
case 311: // lhzux case 311: // lhzux
update = true; update = true;
[[fallthrough]];
case 279: // lhzx case 279: // lhzx
flags |= BackPatchInfo::FLAG_SIZE_16; flags |= BackPatchInfo::FLAG_SIZE_16;
break; break;
case 375: // lhaux case 375: // lhaux
update = true; update = true;
[[fallthrough]];
case 343: // lhax case 343: // lhax
flags |= BackPatchInfo::FLAG_EXTEND | BackPatchInfo::FLAG_SIZE_16; flags |= BackPatchInfo::FLAG_EXTEND | BackPatchInfo::FLAG_SIZE_16;
break; break;
@ -325,21 +329,25 @@ void JitArm64::lXX(UGeckoInstruction inst)
break; break;
case 33: // lwzu case 33: // lwzu
update = true; update = true;
[[fallthrough]];
case 32: // lwz case 32: // lwz
flags |= BackPatchInfo::FLAG_SIZE_32; flags |= BackPatchInfo::FLAG_SIZE_32;
break; break;
case 35: // lbzu case 35: // lbzu
update = true; update = true;
[[fallthrough]];
case 34: // lbz case 34: // lbz
flags |= BackPatchInfo::FLAG_SIZE_8; flags |= BackPatchInfo::FLAG_SIZE_8;
break; break;
case 41: // lhzu case 41: // lhzu
update = true; update = true;
[[fallthrough]];
case 40: // lhz case 40: // lhz
flags |= BackPatchInfo::FLAG_SIZE_16; flags |= BackPatchInfo::FLAG_SIZE_16;
break; break;
case 43: // lhau case 43: // lhau
update = true; update = true;
[[fallthrough]];
case 42: // lha case 42: // lha
flags |= BackPatchInfo::FLAG_EXTEND | BackPatchInfo::FLAG_SIZE_16; flags |= BackPatchInfo::FLAG_EXTEND | BackPatchInfo::FLAG_SIZE_16;
break; break;
@ -389,6 +397,7 @@ void JitArm64::stX(UGeckoInstruction inst)
break; break;
case 37: // stwu case 37: // stwu
update = true; update = true;
[[fallthrough]];
case 36: // stw case 36: // stw
flags |= BackPatchInfo::FLAG_SIZE_32; flags |= BackPatchInfo::FLAG_SIZE_32;
break; break;