[LLVMbugs] [Bug 17235] New: FMA4 not generated for piledriver (bdver2) target?
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Sep 13 10:47:18 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17235
Bug ID: 17235
Summary: FMA4 not generated for piledriver (bdver2) target?
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: kkhoo at perfwizard.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following FMA function could have used an FMA4 instruction ("vfmaddsd") on
a target that supports FMA4; this should avoid the extra move operation:
$ ./clang -v
clang version 3.4 (trunk 189776)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
$ cat fma2.c
#pragma STDC FP_CONTRACT ON
double foo(double x, double y, double z) {
return y*z + x;
}
$ ./clang -S -O3 -fomit-frame-pointer -march=bdver2 -o /dev/stdout fma2.c
.section __TEXT,__text,regular,pure_instructions
.globl _foo
.align 4, 0x90
_foo: ## @foo
.cfi_startproc
## BB#0: ## %entry
vfmadd213sd %xmm0, %xmm2, %xmm1
vmovaps %xmm1, %xmm0
ret
.cfi_e
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130913/bf33e5b7/attachment.html>
More information about the llvm-bugs
mailing list