mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 13:21:43 +00:00
New testcase for support for memcpy/memmove
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11372 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e62589058c
commit
7f007250e1
13
test/Analysis/DSGraph/2004-02-13-memcpy.ll
Normal file
13
test/Analysis/DSGraph/2004-02-13-memcpy.ll
Normal file
@ -0,0 +1,13 @@
|
||||
; RUN: analyze %s -datastructure-gc -dsgc-check-flags=X:SM
|
||||
|
||||
declare void %llvm.memcpy(sbyte*, sbyte*, uint, uint)
|
||||
|
||||
void %test() {
|
||||
%X = alloca int
|
||||
%Y = alloca int
|
||||
%x = cast int* %X to sbyte*
|
||||
%y = cast int* %Y to sbyte*
|
||||
store int 4, int* %X
|
||||
call void %llvm.memcpy(sbyte* %x, sbyte* %y, uint 4, uint 4)
|
||||
ret void
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user