Make sure that FMA3 is favored even when FMA4 is also enabled. Test case for r162454.

llvm-svn: 162653
This commit is contained in:
Craig Topper 2012-08-27 03:38:15 +00:00
parent 5e892a7a03
commit 9e4f0aae17
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
; RUN: llc < %s -mtriple=x86_64-pc-win32 -mcpu=core-avx2 -mattr=avx2,+fma | FileCheck %s
; RUN: llc < %s -mtriple=x86_64-pc-win32 -mcpu=core-avx2 | FileCheck %s
; RUN: llc < %s -mtriple=x86_64-pc-win32 -mattr=+fma,+fma4 | FileCheck %s
define <4 x float> @test_x86_fmadd_ss(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2) {
; CHECK: fmadd213ss %xmm