unexpected call to GENERIC-NEGATE
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
This has been fixed at some point, apparently.