[libre-riscv-dev] [Bug 74] preliminary exploratory software emulation of FP SQRT

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Mon Apr 29 11:18:47 BST 2019


--- Comment #27 from Aleksandar Kostovic <alexandar.kostovic at gmail.com> ---
>theeeeennn... you can do sq_test = x.sqrt() above... and on the answer,
>use the function decodefp32(sq_test)...
>and print those out next to the answer from using main().

Okay so i am confused by the thing i should do but tried to understand, so 

+    sq_test = x.sqrt()
+    e, m = decode_fp32(sq_test)
+    print(main(e, m))

and get an error:
File "/home/aleksandar/projects/ieee754fpu/src/add/fsqrt.py", line 64, in
    return ((x & 0x80000000) >> 31)
TypeError: unsupported operand type(s) for &: 'sfpy.float.Float32' and 'int'

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-riscv-dev mailing list