mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
new testcase globalopt should implement
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20350 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9e2888609c
commit
5926ca209e
16
test/Transforms/GlobalOpt/memcpy.ll
Normal file
16
test/Transforms/GlobalOpt/memcpy.ll
Normal file
@ -0,0 +1,16 @@
|
||||
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | grep 'G1 = internal constant'
|
||||
|
||||
%G1 = internal global [58 x sbyte] c"asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd\00"
|
||||
|
||||
implementation
|
||||
|
||||
declare void %llvm.memcpy(sbyte*, sbyte*, uint, uint)
|
||||
|
||||
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]
|
||||
call void %llvm.memcpy( sbyte* %tmp.0, sbyte* getelementptr ([58 x sbyte]* %G1, int 0, int 0), uint 58, uint 1 )
|
||||
ret void
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user