Raymond Toy pushed to branch issue-356-x87-status-word-in-low-part at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • src/compiler/x86/float-sse2.lisp
    ... ... @@ -1398,7 +1398,8 @@
    1398 1398
        (inst xor sw-reg #x3f)		; invert exception mask
    
    1399 1399
        (move res sw-reg)
    
    1400 1400
        ;; Put status word in the low 16 bits and the control word in the
    
    1401
    -   ;; high 16 bits.
    
    1401
    +   ;; high 16 bits.  This is to match the SSE2 mxcsr register that has
    
    1402
    +   ;; the status bits (sticky bits) in lowest part of the word.
    
    1402 1403
        (inst rol res 16)))
    
    1403 1404
     
    
    1404 1405
     ;; Set the control and status words from the FPU.  The low 16 bits