OSDN Git Service

[Sparc] Implement UMUL_LOHI and SMUL_LOHI instead of MULHS/MULHU/MUL.
authorJames Y Knight <jyknight@google.com>
Wed, 5 Oct 2016 20:54:17 +0000 (20:54 +0000)
committerJames Y Knight <jyknight@google.com>
Wed, 5 Oct 2016 20:54:17 +0000 (20:54 +0000)
commit53666490406a64ec562c830b1f5f1f2b7eb2ed8d
tree0c1fd29743ba05e42f994cae1965d4e0c3b846b8
parent7326421de8e82b7347b7f5f613656ea7feecaf49
[Sparc] Implement UMUL_LOHI and SMUL_LOHI instead of MULHS/MULHU/MUL.

This is what the instruction-set actually provides, and the default
expansions of the others into the lohi opcodes are good.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283381 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Sparc/SparcISelDAGToDAG.cpp
lib/Target/Sparc/SparcISelLowering.cpp
lib/Target/Sparc/SparcInstrInfo.td
test/CodeGen/SPARC/basictest.ll