blob: 743d0177b2d122a9c165b8a351347e32f00f9943 [file] [log] [blame]
Chris Lattnerb83530f2004-02-15 22:14:46 +00001; The intrinsic lowering pass was lowering intrinsics like llvm.memcpy to
2; explicitly specified prototypes, inserting a new function if the old one
3; didn't exist. This caused there to be two external memcpy functions in
4; this testcase for example, which caused the CBE to mangle one, screwing
5; everything up. :( Test that this does not happen anymore.
6;
Reid Spencer69ccadd2006-12-02 04:23:10 +00007; RUN: llvm-upgrade < %s | llvm-as | llc -march=c | not grep _memcpy
Reid Spencer4575ab22007-04-15 23:00:46 +00008; XFAIL: *
Chris Lattnerb83530f2004-02-15 22:14:46 +00009
10declare void %llvm.memcpy(sbyte*, sbyte*, uint,uint)
11declare float* %memcpy(int*, uint,int)
12
13int %test(sbyte *%A, sbyte* %B, int* %C) {
14 call float* %memcpy(int* %C, uint 4, int 17)
15 call void %llvm.memcpy(sbyte* %A, sbyte* %B, uint 123, uint 14)
16 ret int 7
17}