From fd3fe9e45aeadd4cfb41966c7bd5e7c36c687ab0 Mon Sep 17 00:00:00 2001 From: Michael Zuckerman Date: Thu, 12 Nov 2015 16:58:51 +0000 Subject: [x86] translating "fp" (floating point) instructions from {fadd,fdiv,fmul,fsub,fsubr,fdivr} to {faddp,fdivp,fmulp,fsubp,fsubrp,fdivrp} LLVM Missing the following instructions: fadd\fdiv\fmul\fsub\fsubr\fdivr. GAS and MS supporting this instruction and lowering them in to a faddp\fdivp\fmulp\fsubp\fsubrp\fdivrp instructions. Differential Revision: http://reviews.llvm.org/D14217 llvm-svn: 252908 --- llvm/test/MC/X86/intel-syntax-2.s | 14 ++++++++++++++ llvm/test/MC/X86/intel-syntax.s | 14 ++++++++++++++ 2 files changed, 28 insertions(+) (limited to 'llvm/test/MC') diff --git a/llvm/test/MC/X86/intel-syntax-2.s b/llvm/test/MC/X86/intel-syntax-2.s index f7bdaf92dbb..aead5766db4 100644 --- a/llvm/test/MC/X86/intel-syntax-2.s +++ b/llvm/test/MC/X86/intel-syntax-2.s @@ -15,3 +15,17 @@ _test2: .att_syntax prefix movl $255, -4(%rsp) // CHECK: movl $255, -4(%rsp) + +_test3: +fadd +// CHECK: faddp %st(1) +fmul +// CHECK: fmulp %st(1) +fsub +// CHECK: fsubp %st(1) +fsubr +// CHECK: fsubrp %st(1) +fdiv +// CHECK: fdivp %st(1) +fdivr +// CHECK: fdivrp %st(1) diff --git a/llvm/test/MC/X86/intel-syntax.s b/llvm/test/MC/X86/intel-syntax.s index 002a6f81dcf..b79b21dc969 100644 --- a/llvm/test/MC/X86/intel-syntax.s +++ b/llvm/test/MC/X86/intel-syntax.s @@ -533,6 +533,20 @@ fsubrp ST(1) fdivp ST(1) fdivrp ST(1) + +// CHECK: faddp %st(1) +// CHECK: fmulp %st(1) +// CHECK: fsubrp %st(1) +// CHECK: fsubp %st(1) +// CHECK: fdivrp %st(1) +// CHECK: fdivp %st(1) +fadd +fmul +fsub +fsubr +fdiv +fdivr + // CHECK: faddp %st(1) // CHECK: fmulp %st(1) // CHECK: fsubrp %st(1) -- cgit v1.2.3