diff options
author | Pete Cooper <peter_cooper@apple.com> | 2012-06-24 00:05:44 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2012-06-24 00:05:44 +0000 |
commit | b49998d76cb4e414d13d60116adf13b085d85dc1 (patch) | |
tree | 817fc01645fda808cf087c7951c556ad64b6301d /test | |
parent | c82b9a51a2a8516ca3426d8494050301f8f73fcc (diff) | |
download | external_llvm-b49998d76cb4e414d13d60116adf13b085d85dc1.zip external_llvm-b49998d76cb4e414d13d60116adf13b085d85dc1.tar.gz external_llvm-b49998d76cb4e414d13d60116adf13b085d85dc1.tar.bz2 |
DAG legalisation can now handle illegal fma vector types by scalarisation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/fusedMAC.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fusedMAC.ll b/test/CodeGen/ARM/fusedMAC.ll index d35330c..303d165 100644 --- a/test/CodeGen/ARM/fusedMAC.ll +++ b/test/CodeGen/ARM/fusedMAC.ll @@ -206,7 +206,19 @@ define float @test_fma_canonicalize(float %a, float %b) nounwind { ret float %ret } +; Check that very wide vector fma's can be split into legal fma's. +define void @test_fma_v8f32(<8 x float> %a, <8 x float> %b, <8 x float> %c, <8 x float>* %p) nounwind readnone ssp { +; CHECK: test_fma_v8f32 +; CHECK: vfma.f32 +; CHECK: vfma.f32 +entry: + %call = tail call <8 x float> @llvm.fma.v8f32(<8 x float> %a, <8 x float> %b, <8 x float> %c) nounwind readnone + store <8 x float> %call, <8 x float>* %p, align 16 + ret void +} + declare float @llvm.fma.f32(float, float, float) nounwind readnone declare double @llvm.fma.f64(double, double, double) nounwind readnone declare <2 x float> @llvm.fma.v2f32(<2 x float>, <2 x float>, <2 x float>) nounwind readnone +declare <8 x float> @llvm.fma.v8f32(<8 x float>, <8 x float>, <8 x float>) nounwind readnone |