summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@gmail.com>2011-04-20 09:28:55 +0000
committerChe-Liang Chiou <clchiou@gmail.com>2011-04-20 09:28:55 +0000
commit6586f8468586078acfcedc9f26a7fc3146fb7c37 (patch)
tree02bcbabf9809588e5b89c4a791c126b89ffc13c5 /llvm/lib
parent5a952b3c67a14bdc2da7412b72b6a507bfe564be (diff)
downloadbcm5719-llvm-6586f8468586078acfcedc9f26a7fc3146fb7c37.tar.gz
bcm5719-llvm-6586f8468586078acfcedc9f26a7fc3146fb7c37.zip
ptx: add integer div and rem instruction
Patched by Dan Bailey llvm-svn: 129848
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PTX/PTXInstrInfo.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PTX/PTXInstrInfo.td b/llvm/lib/Target/PTX/PTXInstrInfo.td
index 25e7ae1b6ed..972002cf6ae 100644
--- a/llvm/lib/Target/PTX/PTXInstrInfo.td
+++ b/llvm/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 ----------------------------===//
OpenPOWER on IntegriCloud