mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 07:00:45 +00:00
expand memmove and memcpy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
875fd8fd10
commit
97815c6b9c
@ -75,7 +75,9 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
||||
|
||||
setOperationAction(ISD::SELECT_CC, MVT::i32, Custom);
|
||||
|
||||
setOperationAction(ISD::MEMMOVE, MVT::Other, Expand);
|
||||
setOperationAction(ISD::MEMSET, MVT::Other, Expand);
|
||||
setOperationAction(ISD::MEMCPY, MVT::Other, Expand);
|
||||
|
||||
setOperationAction(ISD::BR_JT, MVT::Other, Expand);
|
||||
setOperationAction(ISD::BRIND, MVT::Other, Expand);
|
||||
|
13
test/CodeGen/ARM/memfunc.ll
Normal file
13
test/CodeGen/ARM/memfunc.ll
Normal file
@ -0,0 +1,13 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm
|
||||
|
||||
void %f() {
|
||||
entry:
|
||||
call void %llvm.memmove.i32( sbyte* null, sbyte* null, uint 64, uint 0 )
|
||||
call void %llvm.memcpy.i32( sbyte* null, sbyte* null, uint 64, uint 0 )
|
||||
call void %llvm.memset.i32( sbyte* null, ubyte 64, uint 0, uint 0 )
|
||||
unreachable
|
||||
}
|
||||
|
||||
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)
|
Loading…
Reference in New Issue
Block a user