summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZPatterns.td
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-10-01 14:41:52 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-10-01 14:41:52 +0000
commitbd1958d8e99ebd5a885f848b2f688c399cfc9886 (patch)
treeb6e601bf608dbf79bf81ad61465325d83ac3bd18 /lib/Target/SystemZ/SystemZPatterns.td
parentf985f01574956da0d42e33d440deb63bf153d354 (diff)
downloadllvm-bd1958d8e99ebd5a885f848b2f688c399cfc9886.tar.gz
llvm-bd1958d8e99ebd5a885f848b2f688c399cfc9886.tar.bz2
llvm-bd1958d8e99ebd5a885f848b2f688c399cfc9886.tar.xz
[SystemZ] Extend test-under-mask support to high GR32s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191773 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZPatterns.td')
-rw-r--r--lib/Target/SystemZ/SystemZPatterns.td6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/SystemZ/SystemZPatterns.td b/lib/Target/SystemZ/SystemZPatterns.td
index af46919569..f3ca60b27a 100644
--- a/lib/Target/SystemZ/SystemZPatterns.td
+++ b/lib/Target/SystemZ/SystemZPatterns.td
@@ -113,11 +113,11 @@ multiclass CondStores64<Instruction insn, Instruction insninv,
}
// INSN performs a comparison between a 32-bit register and a constant.
-// Record that it is equivalent to comparing the low word of a GR64 with IMM.
+// Record that it is equivalent to comparing subreg SUBREG of a GR64 with IMM.
class CompareGR64RI<Instruction insn, SDPatternOperator compare,
- Immediate imm>
+ Immediate imm, SubRegIndex subreg>
: Pat<(compare GR64:$R1, imm:$I2),
- (insn (EXTRACT_SUBREG GR64:$R1, subreg_l32),
+ (insn (EXTRACT_SUBREG GR64:$R1, subreg),
(imm.OperandTransform imm:$I2))>;
// Try to use MVC instruction INSN for a load of type LOAD followed by a store