Ticket #9070: gccbswap.patch

File gccbswap.patch, 560 bytes (added by SF/nolange, 15 years ago)

patch for the PSPToolchains GCC to add support for builtin_bswap

  • gcc-4.3.2/gcc/config/mips/mips.md

    old new  
    48464846  [(set_attr "type" "shift")
    48474847   (set_attr "mode" "<MODE>")])
    48484848
    48494849
     4850(define_insn "bswapsi2"
     4851  [(set (match_operand:SI 0 "register_operand" "=d")
     4852        (bswap:SI (match_operand:SI 1 "register_operand" "d")))]
     4853  "ISA_HAS_ROR"
     4854  "wsbh\t%0,%1\n\tror\t%0,%0,16"
     4855  [(set_attr "type" "shift")
     4856   (set_attr "mode" "SI")
     4857   (set_attr "length" "8")])
     4858
    48504859;;
    48514860;;  ....................