diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2012-11-17 01:52:46 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2012-11-17 01:52:46 +0000 |
| commit | 30834940ec087c216e577e076ac0849142936bd8 (patch) | |
| tree | 3a405a4709893eb97b281d1f034c2bda131ef0ef /llvm/test | |
| parent | 3e94f57a0fbbd87258578f2a4d8cccf93d289836 (diff) | |
| download | bcm5719-llvm-30834940ec087c216e577e076ac0849142936bd8.tar.gz bcm5719-llvm-30834940ec087c216e577e076ac0849142936bd8.zip | |
Mark FP_EXTEND form v2f32 to v2f64 as "expand" for ARM NEON. Patch by Pete Couperus.
llvm-svn: 168240
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/ARM/neon_fpconv.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/neon_fpconv.ll b/llvm/test/CodeGen/ARM/neon_fpconv.ll index f80ea3e3495..1948ad84711 100644 --- a/llvm/test/CodeGen/ARM/neon_fpconv.ll +++ b/llvm/test/CodeGen/ARM/neon_fpconv.ll @@ -7,3 +7,11 @@ define <2 x float> @vtrunc(<2 x double> %a) { %vt = fptrunc <2 x double> %a to <2 x float> ret <2 x float> %vt } + +define <2 x double> @vextend(<2 x float> %a) { +; CHECK: vcvt.f64.f32 [[D0:d[0-9]+]], [[S0:s[0-9]+]] +; CHECK: vcvt.f64.f32 [[D1:d[0-9]+]], [[S1:s[0-9]+]] + %ve = fpext <2 x float> %a to <2 x double> + ret <2 x double> %ve +} + |

