diff options
author | Che-Liang Chiou <clchiou@gmail.com> | 2011-04-20 09:28:55 +0000 |
---|---|---|
committer | Che-Liang Chiou <clchiou@gmail.com> | 2011-04-20 09:28:55 +0000 |
commit | b32204cd16d3dec812bb5be0794214532775dc7e (patch) | |
tree | f3d16da55bd0184255dd0b16662f8227559440b0 | |
parent | 1e93249199d25d3a68bdc51d7c0dd682e2e894be (diff) |
ptx: add integer div and rem instruction
Patched by Dan Bailey
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129848 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PTX/PTXInstrInfo.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PTX/PTXInstrInfo.td b/lib/Target/PTX/PTXInstrInfo.td index 25e7ae1b6e..972002cf6a 100644 --- a/lib/Target/PTX/PTXInstrInfo.td +++ b/lib/Target/PTX/PTXInstrInfo.td @@ -534,6 +534,8 @@ multiclass PTX_ST_ALL<string opstr, PatFrag pat_store> { defm ADD : INT3<"add", add>; defm SUB : INT3<"sub", sub>; defm MUL : INT3<"mul.lo", mul>; // FIXME: Allow 32x32 -> 64 multiplies +defm DIV : INT3<"div", udiv>; +defm REM : INT3<"rem", urem>; ///===- Floating-Point Arithmetic Instructions ----------------------------===// |