diff options
author | Akira Hatanaka <ahatanak@gmail.com> | 2011-08-12 21:30:06 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanak@gmail.com> | 2011-08-12 21:30:06 +0000 |
commit | 5c21c9e78ebbb5b766fac31bf30433926dcc2a5d (patch) | |
tree | d8550ce4ac592525bd51b8cd353fa2e6ac738591 /test/CodeGen/Mips/unalignedload.ll | |
parent | 4dfe220ad55e0f1e5edbf7cdd07f88497ddfdf25 (diff) |
Define unaligned load and store.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/unalignedload.ll')
-rw-r--r-- | test/CodeGen/Mips/unalignedload.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/unalignedload.ll b/test/CodeGen/Mips/unalignedload.ll new file mode 100644 index 0000000000..072f0574e7 --- /dev/null +++ b/test/CodeGen/Mips/unalignedload.ll @@ -0,0 +1,16 @@ +; RUN: llc -march=mips < %s | FileCheck %s + +%struct.S2 = type { %struct.S1, %struct.S1 } +%struct.S1 = type { i8, i8 } + +@s2 = common global %struct.S2 zeroinitializer, align 1 + +define void @foo1() nounwind { +entry: +; CHECK: ulw ${{[0-9]+}}, 2 + + tail call void @foo2(%struct.S1* byval getelementptr inbounds (%struct.S2* @s2, i32 0, i32 1)) nounwind + ret void +} + +declare void @foo2(%struct.S1* byval) |