mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2b4c279a8e
commit
f8f7cf3987
18
test/CodeGen/ARM/truncstore-dag-combine.ll
Normal file
18
test/CodeGen/ARM/truncstore-dag-combine.ll
Normal file
@ -0,0 +1,18 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm | not grep orr
|
||||
; RUN: llvm-as < %s | llc -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user