mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 02:32:08 +00:00
b9cac27f7d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31502 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
595 B
LLVM
19 lines
595 B
LLVM
;RUN: llvm-as < %s | opt -instcombine | llvm-dis |not grep memmove.i32
|
|
; Instcombine was trying to turn this into a memmove.i32
|
|
|
|
target datalayout = "e-p:64:64"
|
|
target endian = little
|
|
target pointersize = 64
|
|
target triple = "alphaev67-unknown-linux-gnu"
|
|
%str10 = internal constant [1 x sbyte] zeroinitializer ; <[1 x sbyte]*> [#uses=1]
|
|
|
|
implementation ; Functions:
|
|
|
|
void %do_join(sbyte* %b) {
|
|
entry:
|
|
call void %llvm.memmove.i64( sbyte* %b, sbyte* getelementptr ([1 x sbyte]* %str10, int 0, ulong 0), ulong 1, uint 1 )
|
|
ret void
|
|
}
|
|
|
|
declare void %llvm.memmove.i64(sbyte*, sbyte*, ulong, uint)
|