summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZInstrInfo.td
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 13:59:49 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 13:59:49 +0000
commitc9d4a887f6e744d0f9ba54e3562bceead0be471f (patch)
tree297f418b06ce55e16b79712959a4fb14deb2421c /lib/Target/SystemZ/SystemZInstrInfo.td
parentac16b181f1ea56f03fab119b7ec6fce5d305f1ed (diff)
downloadllvm-c9d4a887f6e744d0f9ba54e3562bceead0be471f.tar.gz
llvm-c9d4a887f6e744d0f9ba54e3562bceead0be471f.tar.bz2
llvm-c9d4a887f6e744d0f9ba54e3562bceead0be471f.tar.xz
Pipehole pattern for i32 imm's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75965 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrInfo.td')
-rw-r--r--lib/Target/SystemZ/SystemZInstrInfo.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.td b/lib/Target/SystemZ/SystemZInstrInfo.td
index 1f3822307b..de21759b82 100644
--- a/lib/Target/SystemZ/SystemZInstrInfo.td
+++ b/lib/Target/SystemZ/SystemZInstrInfo.td
@@ -925,3 +925,6 @@ def : Pat<(urem GR64:$src1, GR64:$src2),
GR64:$src1, subreg_odd),
GR64:$src2),
subreg_even)>;
+
+def : Pat<(i32 imm:$src),
+ (EXTRACT_SUBREG (MOV64ri32 (i64 imm:$src)), subreg_32bit)>;