Make sure that FMA3 is favored even when FMA4 is also enabled. Test case for r162454.
authorCraig Topper <craig.topper@gmail.com>
Mon, 27 Aug 2012 03:38:15 +0000 (03:38 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 27 Aug 2012 03:38:15 +0000 (03:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162653 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/fma3-intrinsics.ll

index 90529e09d75b3eef92b068036d080b8d8a934617..1b660f1a01772596baa3346b245ea427d72679aa 100755 (executable)
@@ -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