unexpected call to GENERIC-NEGATE

Bug #903820 reported by Nikodemus Siivola
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

(defun low (x)
  (declare (sb-ext:word x) (optimize speed))
  (logand x (- x)))

; 0AB24766: 48895DF8 MOV [RBP-8], RBX ; no-arg-parsing entry point
; 6A: 488BD3 MOV RDX, RBX
; 6D: 4C8D1C25D1030020 LEA R11, [#x200003D1] ; GENERIC-NEGATE
; 75: 41FFD3 CALL R11
; 78: 480F42E3 CMOVB RSP, RBX
; 7C: 488BFA MOV RDI, RDX
; 7F: 488B5DF8 MOV RBX, [RBP-8]
; 83: 488BD3 MOV RDX, RBX
; 86: 4883EC18 SUB RSP, 24
; 8A: 48896C2408 MOV [RSP+8], RBP
; 8F: 488D6C2408 LEA RBP, [RSP+8]
; 94: B904000000 MOV ECX, 4
; 99: 488B0425180F1020 MOV RAX, [#x20100F18]
; A1: FFD0 CALL RAX
; A3: 488BE5 MOV RSP, RBP
; A6: F8 CLC
; A7: 5D POP RBP
; A8: C3 RET

Revision history for this message
Stas Boukarev (stassats) wrote :

This has been fixed at some point, apparently.

Changed in sbcl:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.