diff options
| author | Tim Northover <tnorthover@apple.com> | 2017-01-25 20:58:26 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2017-01-25 20:58:26 +0000 |
| commit | 470f070b7dd208f677193439cdb08438f1cee46a (patch) | |
| tree | 54847686604a5a717fa5c3569e7b0beb68bb73a2 /llvm/test/CodeGen | |
| parent | 9e35f1e21c421242c344b42d646846cd6b82f930 (diff) | |
| download | bcm5719-llvm-470f070b7dd208f677193439cdb08438f1cee46a.tar.gz bcm5719-llvm-470f070b7dd208f677193439cdb08438f1cee46a.zip | |
SDag: fix how initial loads are formed when splitting vector ops.
Later code expects the vector loads produced to be directly
concatenable, which means we shouldn't pad anything except the last load
produced with UNDEF.
llvm-svn: 293088
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/ARM/vector-load.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/vector-load.ll b/llvm/test/CodeGen/ARM/vector-load.ll index a638c2bdb9b..ed734723a86 100644 --- a/llvm/test/CodeGen/ARM/vector-load.ll +++ b/llvm/test/CodeGen/ARM/vector-load.ll @@ -251,3 +251,13 @@ define <4 x i32> @zextload_v8i8tov8i32_fake_update(<4 x i8>** %ptr) { %zlA = zext <4 x i8> %lA to <4 x i32> ret <4 x i32> %zlA } + +; CHECK-LABEL: test_silly_load: +; CHECK: ldr {{r[0-9]+}}, [r0, #24] +; CHECK: vld1.8 {d{{[0-9]+}}, d{{[0-9]+}}}, [r0:128]! +; CHECK: vldr d{{[0-9]+}}, [r0] + +define void @test_silly_load(<28 x i8>* %addr) { + load volatile <28 x i8>, <28 x i8>* %addr + ret void +} |

