From f31a44ec01f9035aef4d79f7ba515398557fcc1a Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Fri, 21 Aug 2009 20:02:37 +0000 Subject: Add fcopysign instructions llvm-svn: 79664 --- llvm/lib/Target/SystemZ/SystemZInstrFP.td | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'llvm/lib/Target') diff --git a/llvm/lib/Target/SystemZ/SystemZInstrFP.td b/llvm/lib/Target/SystemZ/SystemZInstrFP.td index a5bda24fb02..8a202d4523a 100644 --- a/llvm/lib/Target/SystemZ/SystemZInstrFP.td +++ b/llvm/lib/Target/SystemZ/SystemZInstrFP.td @@ -86,6 +86,13 @@ def FMOV64mry : Pseudo<(outs), (ins rriaddr:$dst, FP64:$src), "stdy\t{$src, $dst}", [(store FP64:$src, rriaddr:$dst)]>; +def FCOPYSIGN32 : Pseudo<(outs FP32:$dst), (ins FP32:$src1, FP32:$src2), + "cpsdr\t{$dst, $src2, $src1}", + [(set FP32:$dst, (fcopysign FP32:$src1, FP32:$src2))]>; +def FCOPYSIGN64 : Pseudo<(outs FP64:$dst), (ins FP64:$src1, FP64:$src2), + "cpsdr\t{$dst, $src2, $src1}", + [(set FP64:$dst, (fcopysign FP64:$src1, FP64:$src2))]>; + //===----------------------------------------------------------------------===// // Arithmetic Instructions -- cgit v1.2.3