From ae2d8abf2cea6c2492165da620c3eb8195159f82 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 16 Jul 2009 14:23:30 +0000 Subject: [PATCH] LOAD COMPLEMENT instruction is not really two-addr llvm-svn: 76031 --- llvm/lib/Target/SystemZ/SystemZInstrFP.td | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/SystemZ/SystemZInstrFP.td b/llvm/lib/Target/SystemZ/SystemZInstrFP.td index 5acd5b6424dd..0c9a239972fe 100644 --- a/llvm/lib/Target/SystemZ/SystemZInstrFP.td +++ b/llvm/lib/Target/SystemZ/SystemZInstrFP.td @@ -69,18 +69,19 @@ def FMOV64mry : Pseudo<(outs), (ins rriaddr:$dst, FP64:$src), // Arithmetic Instructions -let isTwoAddress = 1 in { let Defs = [PSW] in { - def FNEG32rr : Pseudo<(outs FP32:$dst), (ins FP32:$src), - "lcebr\t{$dst}", + "lcebr\t{$dst, $src}", [(set FP32:$dst, (fneg FP32:$src)), (implicit PSW)]>; def FNEG64rr : Pseudo<(outs FP64:$dst), (ins FP64:$src), - "lcdbr\t{$dst}", + "lcdbr\t{$dst, $src}", [(set FP64:$dst, (fneg FP64:$src)), (implicit PSW)]>; +} +let isTwoAddress = 1 in { +let Defs = [PSW] in { // FIXME: Add peephole for fneg(fabs) => load negative def FABS32rr : Pseudo<(outs FP32:$dst), (ins FP32:$src),