From: Che-Liang Chiou Date: Wed, 20 Apr 2011 09:28:55 +0000 (+0000) Subject: ptx: add integer div and rem instruction X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b32204cd16d3dec812bb5be0794214532775dc7e;p=oota-llvm.git 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 --- diff --git a/lib/Target/PTX/PTXInstrInfo.td b/lib/Target/PTX/PTXInstrInfo.td index 25e7ae1b6ed..972002cf6ae 100644 --- a/lib/Target/PTX/PTXInstrInfo.td +++ b/lib/Target/PTX/PTXInstrInfo.td @@ -534,6 +534,8 @@ multiclass PTX_ST_ALL { 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 ----------------------------===//