On Fri, Jun 30, 2023 at 11:46 AM Richard Henderson <richard.hender...@linaro.org> wrote: > > On 6/30/23 11:13, Christoph Muellner wrote: > > From: Christoph Müllner<christoph.muell...@vrull.eu> > > > > This patch introduces a test for Zfa's fcvtmod.w.d instruction. > > The test cases test for correct results and flag behaviour. > > Note, that the Zfa specification requires fcvtmod's flag behaviour > > to be identical to a fcvt with the same operands (which is also > > tested). > > > > DO NOT MERGE!!! > > Although this test works just fine, it requires a toolchain > > that supports the Zfa extension. Unless this is available > > this patch cannot be merged. > > DO NOT MERGE!!! > > That's what > > /* fcvtmod.w.d rd, rs1, rtz = 1100001 01000 rs1 001 rd 1010011 */ > asm(".insn r, 0x53, 0x1, 0x61, %0, %1, f8" : "=r"(ret) : "f"(fpr)); > > is for. > > > + __asm__ __volatile__("fmv.d.x %0, %1" : "=fp"(fpr) : "r"(inp)); > > Always "f" not "fp". "fp" is *two* constraints, "f" and "p", and the second > is incorrect.
Fixed, tested and merged into the other patch. Thanks! > > > r~