]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/ARM/truncstore-dag-combine.ll
Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
[FreeBSD/FreeBSD.git] / test / CodeGen / ARM / truncstore-dag-combine.ll
1 ; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s
2
3 define void @bar(i8* %P, i16* %Q) {
4 entry:
5         %P1 = bitcast i8* %P to i16*            ; <i16*> [#uses=1]
6         %tmp = load i16* %Q, align 1            ; <i16> [#uses=1]
7         store i16 %tmp, i16* %P1, align 1
8         ret void
9 }
10
11 define void @foo(i8* %P, i32* %Q) {
12 entry:
13         %P1 = bitcast i8* %P to i32*            ; <i32*> [#uses=1]
14         %tmp = load i32* %Q, align 1            ; <i32> [#uses=1]
15         store i32 %tmp, i32* %P1, align 1
16         ret void
17 }
18
19 ; CHECK-NOT: orr
20 ; CHECK-NOT: mov
21