OSDN Git Service

[SystemZ] Use DSGFR over DSGR in more cases
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Tue, 2 Jul 2013 15:40:22 +0000 (15:40 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Tue, 2 Jul 2013 15:40:22 +0000 (15:40 +0000)
commit35b7bebe1162326c38217ff80d4a49fbbffcc365
treeca40f2316e4ea9df6282c869b4559ca7763dee87
parent1ce4894a3f1ce6e63c1b109c24235d81dea2908f
[SystemZ] Use DSGFR over DSGR in more cases

Fixes some cases where we were using full 64-bit division for (sdiv i32, i32)
and (sdiv i64, i32).

The "32" in "SDIVREM32" just refers to the second operand.  The first operand
of all *DIVREM*s is a GR128.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185435 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/SystemZ/SystemZISelLowering.h
lib/Target/SystemZ/SystemZInstrInfo.td
lib/Target/SystemZ/SystemZOperators.td
test/CodeGen/SystemZ/int-div-01.ll
test/CodeGen/SystemZ/int-div-03.ll