Skip to content

Commit

Permalink
Add missing default to switches
Browse files Browse the repository at this point in the history
  • Loading branch information
qubka authored Apr 9, 2024
1 parent 5ea2c69 commit a0f5749
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/registers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ size_t dyno::RegisterTypeToSSEIndex(RegisterType reg) {
case ZMM30: return 30;
case ZMM31: return 31;
#endif // DYNO_PLATFORM_AVX512

default: break;
}
return (size_t)-1;
}
Expand Down Expand Up @@ -566,6 +568,7 @@ RegisterType dyno::SSEIndexToRegisterType(size_t index, size_t size) {
case 31: return XMM31;
#endif // DYNO_PLATFORM_AVX512
#endif // DYNO_ARCH_X86
default: break;
}
break;

Expand Down Expand Up @@ -610,6 +613,7 @@ RegisterType dyno::SSEIndexToRegisterType(size_t index, size_t size) {
case 30: return YMM30;
case 31: return YMM31;
#endif // DYNO_PLATFORM_AVX512
default: break;
}
break;
#endif // DYNO_PLATFORM_AVX
Expand Down Expand Up @@ -653,6 +657,7 @@ RegisterType dyno::SSEIndexToRegisterType(size_t index, size_t size) {
case 29: return ZMM29;
case 30: return ZMM30;
case 31: return ZMM31;
default: break;
}
break;
#endif // DYNO_PLATFORM_AVX512
Expand Down

0 comments on commit a0f5749

Please sign in to comment.