ARM pop of a single register encodes as post-indexed LDR.
[oota-llvm.git] / test / CodeGen / ARM / truncstore-dag-combine.ll
1 ; RUN: llc < %s -march=arm -mattr=+v4t | not grep orr
2 ; RUN: llc < %s -march=arm -mattr=+v4t | not grep mov
3
4 define void @bar(i8* %P, i16* %Q) {
5 entry:
6         %P1 = bitcast i8* %P to i16*            ; <i16*> [#uses=1]
7         %tmp = load i16* %Q, align 1            ; <i16> [#uses=1]
8         store i16 %tmp, i16* %P1, align 1
9         ret void
10 }
11
12 define void @foo(i8* %P, i32* %Q) {
13 entry:
14         %P1 = bitcast i8* %P to i32*            ; <i32*> [#uses=1]
15         %tmp = load i32* %Q, align 1            ; <i32> [#uses=1]
16         store i32 %tmp, i32* %P1, align 1
17         ret void
18 }