projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ea4025
)
Add 64-bit to 32-bit trunc pattern.
author
Akira Hatanaka
<ahatanaka@mips.com>
Mon, 7 Nov 2011 18:57:41 +0000
(18:57 +0000)
committer
Akira Hatanaka
<ahatanaka@mips.com>
Mon, 7 Nov 2011 18:57:41 +0000
(18:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143988
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/Mips/Mips64InstrInfo.td
patch
|
blob
|
history
diff --git
a/lib/Target/Mips/Mips64InstrInfo.td
b/lib/Target/Mips/Mips64InstrInfo.td
index 05470d5a4d429af1a59bc9a8e1418f946a0c9f0a..3708c4a3627b4c34e93b9fb8a04816e3e2ec42e2 100644
(file)
--- a/
lib/Target/Mips/Mips64InstrInfo.td
+++ b/
lib/Target/Mips/Mips64InstrInfo.td
@@
-172,3
+172,8
@@
defm : SetlePats<CPU64Regs, SLT64, SLTu64>;
defm : SetgtPats<CPU64Regs, SLT64, SLTu64>;
defm : SetgePats<CPU64Regs, SLT64, SLTu64>;
defm : SetgeImmPats<CPU64Regs, SLTi64, SLTiu64>;
+
+// truncate
+def : Pat<(i32 (trunc CPU64Regs:$src)),
+ (SLL (EXTRACT_SUBREG CPU64Regs:$src, sub_32), 0)>, Requires<[IsN64]>;
+