2007-01-04 00:47:29 +01:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | \
|
2007-04-15 10:30:33 +02:00
|
|
|
; RUN: grep {G1 = internal constant}
|
2005-02-27 19:47:17 +01:00
|
|
|
|
|
|
|
%G1 = internal global [58 x sbyte] c"asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd\00"
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
2006-12-02 21:41:53 +01:00
|
|
|
declare void %llvm.memcpy.i32(sbyte*, sbyte*, uint, uint)
|
2005-02-27 19:47:17 +01:00
|
|
|
|
|
|
|
void %foo() {
|
|
|
|
%Blah = alloca [58 x sbyte] ; <[58 x sbyte]*> [#uses=2]
|
|
|
|
%tmp.0 = getelementptr [58 x sbyte]* %Blah, int 0, int 0 ; <sbyte*> [#uses=1]
|
2006-12-02 21:41:53 +01:00
|
|
|
call void %llvm.memcpy.i32( sbyte* %tmp.0, sbyte* getelementptr ([58 x sbyte]* %G1, int 0, int 0), uint 58, uint 1 )
|
2005-02-27 19:47:17 +01:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
|