mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
new testcase for intrinsic folding
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11943 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
efd74a0159
commit
43c4361178
17
test/Transforms/InstCombine/call-intrinsics.ll
Normal file
17
test/Transforms/InstCombine/call-intrinsics.ll
Normal file
@ -0,0 +1,17 @@
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis
|
||||
|
||||
declare void %llvm.memmove(sbyte*, sbyte*, uint, uint)
|
||||
declare void %llvm.memcpy(sbyte*, sbyte*, uint, uint)
|
||||
declare void %llvm.memset(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(sbyte* %X, sbyte* %Y, uint 0, uint 100)
|
||||
call void %llvm.memcpy(sbyte* %X, sbyte* %Y, uint 0, uint 100)
|
||||
call void %llvm.memset(sbyte* %X, ubyte 123, uint 0, uint 100)
|
||||
ret void
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user