For PR1336:

Upgrade the intrinsic to its new form.

llvm-svn: 36108
This commit is contained in:
Reid Spencer 2007-04-16 03:10:56 +00:00
parent c940d0761c
commit 4b4055a1ab
1 changed files with 2 additions and 3 deletions

View File

@ -5,13 +5,12 @@
; everything up. :( Test that this does not happen anymore.
;
; RUN: llvm-upgrade < %s | llvm-as | llc -march=c | not grep _memcpy
; XFAIL: *
declare void %llvm.memcpy(sbyte*, sbyte*, uint,uint)
declare void %llvm.memcpy.i32(sbyte*, sbyte*, uint,uint)
declare float* %memcpy(int*, uint,int)
int %test(sbyte *%A, sbyte* %B, int* %C) {
call float* %memcpy(int* %C, uint 4, int 17)
call void %llvm.memcpy(sbyte* %A, sbyte* %B, uint 123, uint 14)
call void %llvm.memcpy.i32(sbyte* %A, sbyte* %B, uint 123, uint 14)
ret int 7
}