mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
2e7e4f2e01
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32137 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
580 B
LLVM
18 lines
580 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis
|
|
|
|
declare void %llvm.memmove.i32(sbyte*, sbyte*, uint, uint)
|
|
declare void %llvm.memcpy.i32(sbyte*, sbyte*, uint, uint)
|
|
declare void %llvm.memset.i32(sbyte*, ubyte, uint, uint)
|
|
|
|
%X = global sbyte 0
|
|
%Y = global sbyte 12
|
|
|
|
void %zero_byte_test() {
|
|
; These process zero bytes, so they are a noop.
|
|
call void %llvm.memmove.i32(sbyte* %X, sbyte* %Y, uint 0, uint 100)
|
|
call void %llvm.memcpy.i32(sbyte* %X, sbyte* %Y, uint 0, uint 100)
|
|
call void %llvm.memset.i32(sbyte* %X, ubyte 123, uint 0, uint 100)
|
|
ret void
|
|
}
|
|
|