[6.30 x86] Inconsistency in quad variable depending on the backend

Post bugreports for the Windows version here
breeze4me
Enthusiast
Enthusiast
Posts: 678
Joined: Thu Mar 09, 2006 9:24 am
Location: S. Kor

[6.30 x86] Inconsistency in quad variable depending on the backend

Post by breeze4me »

See the code.

Code: Select all

CompilerIf #PB_Compiler_Processor <> #PB_Processor_x86
  CompilerError "Use PB x86"
CompilerEndIf

Procedure a(*p)
  Protected s.q = $1122334455667788
  Protected key.q = $224488ffaabbccdd
  Protected r.q = ((s + *p) ! key)
  
  ; v_r=(((integer)(((quad)v_s+(quad)(integer)p_p))^v_key));
  
  ; fixed code.
;   ! v_r=(((quad)(((quad)v_s+(quad)(integer)p_p))^v_key));
  
  
  Debug Hex(r, #PB_Quad)  ; 3366BBBBFC99140B  Asm backend
                          ; 224488FFFC99140B  C backend
  
;   ShowMemoryViewer(@r, 8)
;   CallDebugger

EndProcedure

a(12345678)
User avatar
mk-soft
Always Here
Always Here
Posts: 6607
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: [6.30 x86] Inconsistency in quad variable depending on the backend

Post by mk-soft »

Solution until repair.

Code: Select all

Procedure a(p.q)
My Projects EventDesigner V3 / ThreadToGUI / OOP-BaseClass / Windows: Module ActiveScript
PB v3.30 / v5.75 - OS Mac Mini - VM Window Pro / Linux Ubuntu
Downloads on my OneDrive
Post Reply