[SystemZ] LTGFR use regclass should be GR32, not GR64.
authorJonas Paulsson <jonas.paulsson@ericsson.com>
Mon, 26 Oct 2015 15:03:49 +0000 (15:03 +0000)
committerJonas Paulsson <jonas.paulsson@ericsson.com>
Mon, 26 Oct 2015 15:03:49 +0000 (15:03 +0000)
Discovered by testing int-cmp-44.ll with -verify-machineinstrs (added to
test run).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251299 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/SystemZInstrInfo.td
test/CodeGen/SystemZ/int-cmp-44.ll

index 5343ebaec190c6ec653b4ebbc90b79fe9bc547d3..628c51a48efb6e260bdb640fcccf9b629eed5112 100644 (file)
@@ -424,7 +424,7 @@ let hasSideEffects = 0 in {
   def LGFR : UnaryRRE<"lgf", 0xB914, sext32, GR64, GR32>;
 }
 let Defs = [CC], CCValues = 0xE, CompareZeroCCMask = 0xE in
-  def LTGFR : UnaryRRE<"ltgf", 0xB912, null_frag, GR64, GR64>;
+  def LTGFR : UnaryRRE<"ltgf", 0xB912, null_frag, GR64, GR32>;
 
 // Match 32-to-64-bit sign extensions in which the source is already
 // in a 64-bit register.
index 97d48521254d816f3f35e2e8c67ff718c7666f6b..a87dccd4ac2a13e3991c2524e775706b8af218d7 100644 (file)
@@ -1,7 +1,8 @@
 ; Test that compares are omitted if CC already has the right value
 ; (z10 version).
 ;
-; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 -no-integrated-as | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 -no-integrated-as \
+; RUN:   -verify-machineinstrs| FileCheck %s
 
 declare void @foo()