mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 07:00:45 +00:00
fce288fc91
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81293 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
464 B
LLVM
19 lines
464 B
LLVM
; RUN: llc < %s -march=arm | not grep orr
|
|
; RUN: llc < %s -march=arm | not grep mov
|
|
|
|
define void @bar(i8* %P, i16* %Q) {
|
|
entry:
|
|
%P1 = bitcast i8* %P to i16* ; <i16*> [#uses=1]
|
|
%tmp = load i16* %Q, align 1 ; <i16> [#uses=1]
|
|
store i16 %tmp, i16* %P1, align 1
|
|
ret void
|
|
}
|
|
|
|
define void @foo(i8* %P, i32* %Q) {
|
|
entry:
|
|
%P1 = bitcast i8* %P to i32* ; <i32*> [#uses=1]
|
|
%tmp = load i32* %Q, align 1 ; <i32> [#uses=1]
|
|
store i32 %tmp, i32* %P1, align 1
|
|
ret void
|
|
}
|