Skip to content

Commit

Permalink
Apply clang-format to newly added codes for consistent styling
Browse files Browse the repository at this point in the history
  • Loading branch information
zohanzephyr committed Oct 28, 2024
1 parent 13f2122 commit f8a4824
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 8 additions & 10 deletions src/dynarec/rv64/dynarec_rv64_avx_0f.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@

uintptr_t dynarec64_AVX_0F(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int ninst, vex_t vex, int* ok, int* need_epilog)
{
(void)ip; (void)need_epilog;
(void)ip;
(void)need_epilog;

uint8_t opcode = F8;
uint8_t nextop, u8;
Expand Down Expand Up @@ -56,39 +57,36 @@ uintptr_t dynarec64_AVX_0F(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, in
MAYUSE(s0);
MAYUSE(j64);
MAYUSE(cacheupd);
#if STEP > 1
static const int8_t mask_shift8[] = { -7, -6, -5, -4, -3, -2, -1, 0 };
#endif

rex_t rex = vex.rex;

switch(opcode) {
switch (opcode) {

case 0x10:
INST_NAME("VMOVUPS Gx,Ex");
nextop = F8;
GETGX();
GETEX(x2, 0, 8);
SSE_LOOP_MV_Q(x3);
if(vex.l) {
if (vex.l) {
GETGY();
GETEY(x2, 0, 16);
SSE_LOOP_MV_Q(x3);
}
if(!vex.l) YMM0(gd);
if (!vex.l) YMM0(gd);
break;
case 0x11:
INST_NAME("VMOVUPS Ex,Gx");
nextop = F8;
GETGX();
GETEX(x2, 0, 8);
SSE_LOOP_MV_Q2(x3);
if(vex.l) {
if (vex.l) {
GETGY();
GETEY(x2, 0, 16);
GETEY(x2, 0, 16);
SSE_LOOP_MV_Q2(x3);
}
if(!MODREG) SMWRITE2();
if (!MODREG) SMWRITE2();
break;
default:
DEFAULT;
Expand Down
2 changes: 1 addition & 1 deletion src/dynarec/rv64/dynarec_rv64_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@
SMREAD(); \
ed = 16; \
addr = geted(dyn, addr, ninst, nextop, &wback, a, x3, &fixedaddress, rex, NULL, I12, D); \
fixedaddress+=16; \
fixedaddress += 16; \
}

// Get GX as a quad (might use x1)
Expand Down

0 comments on commit f8a4824

Please sign in to comment.