OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e93249
)
ptx: add integer div and rem instruction
author
Che-Liang Chiou
<clchiou@gmail.com>
Wed, 20 Apr 2011 09:28:55 +0000
(09:28 +0000)
committer
Che-Liang Chiou
<clchiou@gmail.com>
Wed, 20 Apr 2011 09:28:55 +0000
(09:28 +0000)
Patched by Dan Bailey
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129848
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PTX/PTXInstrInfo.td
patch
|
blob
|
history
diff --git
a/lib/Target/PTX/PTXInstrInfo.td
b/lib/Target/PTX/PTXInstrInfo.td
index
25e7ae1
..
972002c
100644
(file)
--- 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 ----------------------------===//