https://bugs.kde.org/show_bug.cgi?id=379744

--- Comment #2 from HuanTran <phongvan1phong...@gmail.com> ---
==980== valgrind: Unrecognised instruction at address 0x454ac
(gdb) disas 0x454ac
   0x000454a0 <+324>:   vmul.f64        d16, d17, d16
   0x000454a4 <+328>:   vdiv.f64        d16, d16, d18
   0x000454a8 <+332>:   vcvt.f32.f64    s16, d16
   0x000454ac <+336>:   vcvt.s32.f32    s16, s16, #20   <-- this one
   0x000454b0 <+340>:   vmov    r3, s16
   0x000454b4 <+344>:   vmov    s0, r3
   0x000454b8 <+348>:   vcvt.f64.s32    d0, s0

Actually the code cause problem is:
float rad = ...;
int _rad20 = (int)(rad * (1 << 20));

When i change the code to:
int _rad20 = (int)((int)rad * (1 << 20));

valgrind can work without problem, I guest the problem is multiple float with
an int type

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to