diff options
author | Mon P Wang <wangmp@apple.com> | 2009-01-17 00:07:25 +0000 |
---|---|---|
committer | Mon P Wang <wangmp@apple.com> | 2009-01-17 00:07:25 +0000 |
commit | 7ac9cdfc991db344a1e0f642aefc6db6b868b9b0 (patch) | |
tree | de2838d4b126bf8e913a5247e83cd9f3abb86fe5 /test/CodeGen/X86/scalar-extract.ll | |
parent | de62aeaec49ddcf4a4c61fbbb3a22d3a4dd448f0 (diff) | |
download | external_llvm-7ac9cdfc991db344a1e0f642aefc6db6b868b9b0.zip external_llvm-7ac9cdfc991db344a1e0f642aefc6db6b868b9b0.tar.gz external_llvm-7ac9cdfc991db344a1e0f642aefc6db6b868b9b0.tar.bz2 |
Simplify extract element of a scalar to vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/scalar-extract.ll')
-rw-r--r-- | test/CodeGen/X86/scalar-extract.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/scalar-extract.ll b/test/CodeGen/X86/scalar-extract.ll new file mode 100644 index 0000000..172c424 --- /dev/null +++ b/test/CodeGen/X86/scalar-extract.ll @@ -0,0 +1,13 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx -o %t -f +; RUN: not grep movq %t + +; Check that widening doesn't introduce a mmx register in this case when +; a simple load/store would suffice. + +define void @foo(<2 x i16>* %A, <2 x i16>* %B) { +entry: + %tmp1 = load <2 x i16>* %A ; <<2 x i16>> [#uses=1] + store <2 x i16> %tmp1, <2 x i16>* %B + ret void +} + |