diff options
author | James Molloy <james.molloy@arm.com> | 2012-04-17 08:18:00 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2012-04-17 08:18:00 +0000 |
commit | 72aadc057c3fb92b5ccbc4c856306abd3b9d3b83 (patch) | |
tree | 255dae91488f1e65e0d0ca4810677f9c59009dd4 /test | |
parent | 86df062791d50b35ae274bbeb8fe2f37944e284a (diff) | |
download | external_llvm-72aadc057c3fb92b5ccbc4c856306abd3b9d3b83.zip external_llvm-72aadc057c3fb92b5ccbc4c856306abd3b9d3b83.tar.gz external_llvm-72aadc057c3fb92b5ccbc4c856306abd3b9d3b83.tar.bz2 |
Fix bad EXTRACT_SUBREG in instruction selection for extending-loads on NEON.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/vector-extend-narrow.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/vector-extend-narrow.ll b/test/CodeGen/ARM/vector-extend-narrow.ll index 5e9239f..1ec36da 100644 --- a/test/CodeGen/ARM/vector-extend-narrow.ll +++ b/test/CodeGen/ARM/vector-extend-narrow.ll @@ -44,3 +44,17 @@ define <4 x i8> @h(<4 x float> %v) { %1 = fptoui <4 x float> %v to <4 x i8> ret <4 x i8> %1 } + +; CHECK: i: +define <4 x i8> @i(<4 x i8>* %x) { + ; CHECK: vldr + ; CHECK: vmovl.s8 + ; CHECK: vmovl.s16 + ; CHECK: vrecpe + ; CHECK: vrecps + ; CHECK: vmul + ; CHECK: vmovn + %1 = load <4 x i8>* %x, align 4 + %2 = sdiv <4 x i8> zeroinitializer, %1 + ret <4 x i8> %2 +} |