diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-12-28 21:24:44 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-12-28 21:24:44 +0000 |
commit | da813f420907ad29802ce9e80238258a48385212 (patch) | |
tree | 3c94397f8aa10378a5177d19b7fed7719c58c700 /test | |
parent | eaf0608891cff27fe4cf08d180a6baf49e00f8ae (diff) | |
download | external_llvm-da813f420907ad29802ce9e80238258a48385212.zip external_llvm-da813f420907ad29802ce9e80238258a48385212.tar.gz external_llvm-da813f420907ad29802ce9e80238258a48385212.tar.bz2 |
Fix type-checking for load transformation which is not legal on floating-point types. PR11674.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/vec_fpext.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_fpext.ll b/test/CodeGen/X86/vec_fpext.ll new file mode 100644 index 0000000..05b263e --- /dev/null +++ b/test/CodeGen/X86/vec_fpext.ll @@ -0,0 +1,14 @@ +; RUN: llc < %s -march=x86 -mattr=+sse41,-avx | FileCheck %s + +; PR11674 +define void @fpext_frommem(<2 x float>* %in, <2 x double>* %out) { +entry: +; TODO: We should be able to generate cvtps2pd for the load. +; For now, just check that we generate something sane. +; CHECK: cvtss2sd +; CHECK: cvtss2sd + %0 = load <2 x float>* %in, align 8 + %1 = fpext <2 x float> %0 to <2 x double> + store <2 x double> %1, <2 x double>* %out, align 1 + ret void +} |