Skip to content
  • Benjamin Kramer's avatar
    X86: Don't emit conditional floating point moves on when targeting pre-pentiumpro architectures. · 913da4b2
    Benjamin Kramer authored
    * Model FPSW (the FPU status word) as a register.
    * Add ISel patterns for the FUCOM*, FNSTSW and SAHF instructions.
    * During Legalize/Lowering, build a node sequence to transfer the comparison
    result from FPSW into EFLAGS. If you're wondering about the right-shift: That's
    an implicit sub-register extraction (%ax -> %ah) which is handled later on by
    the instruction selector.
    
    Fixes PR6679. Patch by Christoph Erhardt!
    
    llvm-svn: 155704
    913da4b2
Loading