diff options
author | Lang Hames <lhames@gmail.com> | 2014-01-31 21:29:19 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2014-01-31 21:29:19 +0000 |
commit | f96f832a3ca939aba0098b3343f2f48aab49f6d0 (patch) | |
tree | 4bc2f3ab5d8a5afb281fa1701d901e6d30289f19 /test | |
parent | 093b0413fe827b48306ef459af7690ba9df14a8e (diff) | |
download | llvm-f96f832a3ca939aba0098b3343f2f48aab49f6d0.tar.gz llvm-f96f832a3ca939aba0098b3343f2f48aab49f6d0.tar.bz2 llvm-f96f832a3ca939aba0098b3343f2f48aab49f6d0.tar.xz |
Replace X86 FMA intrinsic pseduo-instructions with def pats.
It looks like these pseudos were only used for pattern matching. Def pats are
the appropriate way to do that. As a bonus, these intrinsics will now have
memory operands folded properly, and better FMA3 variants selected where
appropriate (see r199933).
<rdar://problem/15611947>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/fma3-intrinsics.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/fma3-intrinsics.ll b/test/CodeGen/X86/fma3-intrinsics.ll index e3910a6935..9a25096c7a 100644 --- a/test/CodeGen/X86/fma3-intrinsics.ll +++ b/test/CodeGen/X86/fma3-intrinsics.ll @@ -3,7 +3,7 @@ ; RUN: llc < %s -mcpu=bdver2 -mtriple=x86_64-pc-win32 -mattr=-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 + ; CHECK: fmadd213ss (%r8), %xmm %res = call <4 x float> @llvm.x86.fma.vfmadd.ss(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2) nounwind ret <4 x float> %res } @@ -24,7 +24,7 @@ define <8 x float> @test_x86_fmadd_ps_y(<8 x float> %a0, <8 x float> %a1, <8 x f declare <8 x float> @llvm.x86.fma.vfmadd.ps.256(<8 x float>, <8 x float>, <8 x float>) nounwind readnone define <4 x float> @test_x86_fnmadd_ss(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2) { - ; CHECK: fnmadd213ss %xmm + ; CHECK: fnmadd213ss (%r8), %xmm %res = call <4 x float> @llvm.x86.fma.vfnmadd.ss(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2) nounwind ret <4 x float> %res } |