dad1897463a68705d42535bef1f1ceda87a7d9fe
[oota-llvm.git] / test / CodeGen / ARM / unaligned_load_store.ll
1 ; RUN: llvm-as < %s | \
2 ; RUN:   llc -march=arm -o %t -f
3 ; RUN: grep ldrb %t | count 4
4 ; RUN: grep strb %t | count 4
5
6
7         %struct.p = type <{ i8, i32 }>
8 @t = global %struct.p <{ i8 1, i32 10 }>                ; <%struct.p*> [#uses=1]
9 @u = weak global %struct.p zeroinitializer              ; <%struct.p*> [#uses=1]
10
11 define i32 @main() {
12 entry:
13         %tmp3 = load i32* getelementptr (%struct.p* @t, i32 0, i32 1), align 1          ; <i32> [#uses=2]
14         store i32 %tmp3, i32* getelementptr (%struct.p* @u, i32 0, i32 1), align 1
15         ret i32 %tmp3
16 }