1 ; RUN: llc < %s -asm-verbose=false | FileCheck %s 2 3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 4 target triple = "x86_64-unknown-linux-gnu" 5 6 %0 = type { %1, i64, %2 } 7 %1 = type { i8* } 8 %2 = type { i64, [8 x i8] } 9 10 @0 = internal constant [10 x i8] c"asdf jkl;\00", align 1 11 12 ; Memcpy lowering should emit stores of immediates containing string data from 13 ; the correct offsets. 14 15 ; CHECK-LABEL: foo: 16 ; CHECK: movb $0, 6(%rdi) 17 ; CHECK: movw $15212, 4(%rdi) 18 ; CHECK: movl $1802117222, (%rdi) 19 define void @foo(i8* %tmp2) { 20 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %tmp2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @0, i64 0, i64 3), i64 7, i1 false) 21 ret void 22 } 23 24 declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture readonly, i64, i1) 25