Skip to content

Commit 79f8759

Browse files
authored
forgot to set ftype in cdcnvt() (dlang#21357)
1 parent db2d075 commit 79f8759

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

compiler/src/dmd/backend/arm/cod4.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,8 @@ void cdcnvt(ref CGstate cg, ref CodeBuilder cdb,elem* e, ref regm_t pretregs)
13881388
}
13891389

13901390
uint sf;
1391-
uint ftype;
1391+
uint sz = _tysize[tybasic(e.E1.Ety)];
1392+
uint ftype = INSTR.szToFtype(sz);
13921393
switch (e.Eoper)
13931394
{
13941395
case OPd_s16: // fcvtzs w0,d31 // sxth w0,w0

compiler/src/dmd/backend/arm/disasmarm.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,6 +1860,9 @@ void disassemble(uint c) @trusted
18601860
: "fcvtzu"; // fcvtzu <V><d>, <V><n> Scalar single-precision and double-precision
18611861
p2 = fregString(rbuf[0 .. 4],"sd h"[size & 1],Rd);
18621862
p3 = fregString(rbuf[4 .. 8],"sd h"[size & 1],Rn);
1863+
1864+
uint n = snprintf(buf.ptr, buf.length, "%s_advsimd_int", p1.ptr);
1865+
url2 = buf[0 .. n];
18631866
}
18641867
}
18651868
else
@@ -2125,6 +2128,8 @@ void disassemble(uint c) @trusted
21252128
p2 = rbuf[0 .. n];
21262129
p3 = regString(sf,Rn);
21272130
}
2131+
uint n = snprintf(buf.ptr, buf.length, "%s_float", p1.ptr);
2132+
url2 = buf[0 .. n];
21282133
}
21292134
}
21302135
else

0 commit comments

Comments
 (0)