Opened 10 years ago

Closed 10 years ago

#646 closed defect (fixed)

%copy-ivector-to-ivector-bytes malfunctions on x86-64

Reported by: a_gavrilov Owned by: gb
Priority: normal Milestone:
Component: Runtime (threads, GC) Version: 1.4
Keywords: Cc:

Description

If the source and destinations are the same:

CL-USER> arr2
#(1 2 3 4 5)
CL-USER> (ccl::%copy-ivector-to-ivector-bytes arr2 0 arr2 8 12)
#(1 2 1 2 1)

This appears to fix it:

--- x86-misc.lisp       (revision 13368)
+++ x86-misc.lisp       (working copy)
@@ -135,7 +135,7 @@
     (movq (@ src-offset (% rsp)) (% rsrc))
     (cmpq (% dest) (% rsrc))
     (jne @front)
-    (cmpq (% src-byte-offset) (% dest-byte-offset))
+    (cmpq (% rsrc-byte-offset) (% dest-byte-offset))
     (jg @back)
     @front
     (testq (% nbytes) (% nbytes))

Change History (1)

comment:1 Changed 10 years ago by rme

  • Resolution set to fixed
  • Status changed from new to closed

(In [13372]) Merge r13371 (fix to %copy-ivector-to-ivector-bytes) to 1.4 branch. Fixes ticket:646.

Note: See TracTickets for help on using tickets.