1; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s
2
3; CHECK-LABEL: bar
4; CHECK-NOT: orr
5; CHECK-NOT: mov
6define void @bar(i8* %P, i16* %Q) {
7entry:
8	%P1 = bitcast i8* %P to i16*		; <i16*> [#uses=1]
9	%tmp = load i16, i16* %Q, align 1		; <i16> [#uses=1]
10	store i16 %tmp, i16* %P1, align 1
11	ret void
12}
13
14; CHECK-LABEL: foo
15; CHECK-NOT: orr
16; CHECK-NOT: mov
17define void @foo(i8* %P, i32* %Q) {
18entry:
19	%P1 = bitcast i8* %P to i32*		; <i32*> [#uses=1]
20	%tmp = load i32, i32* %Q, align 1		; <i32> [#uses=1]
21	store i32 %tmp, i32* %P1, align 1
22	ret void
23}
24