mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-10 00:18:59 +00:00
manually upgrade a bunch of tests to modern syntax, and remove some that
are either unreduced or only test old syntax. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133228 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -11,11 +11,14 @@ entry:
|
||||
; CHECK: @test1
|
||||
; CHECK: call void @llvm.memcpy
|
||||
|
||||
%call3 = malloc [13 x i8] ; <[13 x i8]*> [#uses=1]
|
||||
%malloccall = tail call i8* @malloc(i32 trunc (i64 mul nuw (i64 ptrtoint (i8* getelementptr (i8* null, i32 1) to i64), i64 13) to i32))
|
||||
%call3 = bitcast i8* %malloccall to [13 x i8]*
|
||||
%call3.sub = getelementptr inbounds [13 x i8]* %call3, i64 0, i64 0 ; <i8*> [#uses=2]
|
||||
tail call void @llvm.memmove.i64(i8* %call3.sub, i8* %src, i64 13, i32 1)
|
||||
ret i8* %call3.sub
|
||||
}
|
||||
declare noalias i8* @malloc(i32)
|
||||
|
||||
|
||||
define void @test2(i8* %P) nounwind {
|
||||
entry:
|
||||
|
Reference in New Issue
Block a user