2014-04-04 00:01:44 +08:00
|
|
|
; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s
|
2007-10-13 14:56:18 +08:00
|
|
|
|
2016-02-18 00:35:18 +08:00
|
|
|
; CHECK-LABEL: bar
|
|
|
|
; CHECK-NOT: orr
|
|
|
|
; CHECK-NOT: mov
|
2007-10-13 14:56:18 +08:00
|
|
|
define void @bar(i8* %P, i16* %Q) {
|
|
|
|
entry:
|
|
|
|
%P1 = bitcast i8* %P to i16* ; <i16*> [#uses=1]
|
2015-02-28 05:17:42 +08:00
|
|
|
%tmp = load i16, i16* %Q, align 1 ; <i16> [#uses=1]
|
2007-10-13 14:56:18 +08:00
|
|
|
store i16 %tmp, i16* %P1, align 1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2016-02-18 00:35:18 +08:00
|
|
|
; CHECK-LABEL: foo
|
|
|
|
; CHECK-NOT: orr
|
|
|
|
; CHECK-NOT: mov
|
2007-10-13 14:56:18 +08:00
|
|
|
define void @foo(i8* %P, i32* %Q) {
|
|
|
|
entry:
|
|
|
|
%P1 = bitcast i8* %P to i32* ; <i32*> [#uses=1]
|
2015-02-28 05:17:42 +08:00
|
|
|
%tmp = load i32, i32* %Q, align 1 ; <i32> [#uses=1]
|
2007-10-13 14:56:18 +08:00
|
|
|
store i32 %tmp, i32* %P1, align 1
|
|
|
|
ret void
|
|
|
|
}
|