expand memmove and memcpy

llvm-svn: 32226
This commit is contained in:
Rafael Espindola 2006-12-05 17:57:23 +00:00
parent 5bf28d5efe
commit 5e8a6ca4c0
2 changed files with 15 additions and 0 deletions

View File

@ -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);

View 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)