diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2012-08-09 01:56:44 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2012-08-09 01:56:44 +0000 |
commit | 0b66bd9b078c99dfca6ba0836750cdc168f635d1 (patch) | |
tree | a38bf78edcdbcc5fd11e631f6124151200cc7f8e /test | |
parent | 529f3140507c4b4479ffd58d8008f38b5de6c5c4 (diff) | |
download | external_llvm-0b66bd9b078c99dfca6ba0836750cdc168f635d1.zip external_llvm-0b66bd9b078c99dfca6ba0836750cdc168f635d1.tar.gz external_llvm-0b66bd9b078c99dfca6ba0836750cdc168f635d1.tar.bz2 |
Fix the legalization of ExtLoad on ARM. ExpandUnalignedLoad did not properly
handle the cases where the memory value type was illegal.
PR 13111.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161565 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/2012-08-08-legalize-unaligned.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/2012-08-08-legalize-unaligned.ll b/test/CodeGen/ARM/2012-08-08-legalize-unaligned.ll new file mode 100644 index 0000000..bdcd1b6 --- /dev/null +++ b/test/CodeGen/ARM/2012-08-08-legalize-unaligned.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s +; PR13111 + +target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n32" +target triple = "armv7-none-linux-gnueabi" + +define void @test_hi_char8() noinline { +entry: + %0 = load <4 x i8>* undef, align 1 + store <4 x i8> %0, <4 x i8>* null, align 4 + ret void +} |