[SystemZ] Use load-and-test for fp compare with 0 if vector support is present.
authorJonas Paulsson <jonas.paulsson@ericsson.com>
Thu, 8 Oct 2015 07:40:16 +0000 (07:40 +0000)
committerJonas Paulsson <jonas.paulsson@ericsson.com>
Thu, 8 Oct 2015 07:40:16 +0000 (07:40 +0000)
commite6a99a2ba1c2ea7999fceb98b2aecafb84e424ca
treee0a045481c9d5159eefc90c1438a1ef021a19d99
parente20b8fd665c5c9def4254c4480ab7830877e941f
 [SystemZ] Use load-and-test for fp compare with 0 if vector support is present.

Since the LTxBRCompare instructions can't be used with vector registers, a
normal load-and-test instruction (with a modelled def operand) is used instead.

Reviewed by Ulrich Weigand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249664 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/SystemZ/SystemZISelLowering.h
lib/Target/SystemZ/SystemZInstrFP.td
test/CodeGen/SystemZ/fp-cmp-02.ll