blob: 7778983e28553941fcf6cfd6c6721a1c7313aed6 [file] [log] [blame]
Bill Wendling73fb12e2009-11-19 01:33:57 +00001; RUN: llc < %s -mtriple=x86_64-apple-darwin10.0 -relocation-model=dynamic-no-pic | FileCheck %s
2
3@.str1 = internal constant [31 x i8] c"DHRYSTONE PROGRAM, SOME STRING\00", align 8
4@.str3 = internal constant [31 x i8] c"DHRYSTONE PROGRAM, 2'ND STRING\00", align 8
5
6define void @func() nounwind ssp {
7entry:
8 %String2Loc = alloca [31 x i8], align 1
9 br label %bb
10
11bb:
12 %String2Loc9 = getelementptr inbounds [31 x i8]* %String2Loc, i64 0, i64 0
13 call void @llvm.memcpy.i64(i8* %String2Loc9, i8* getelementptr inbounds ([31 x i8]* @.str3, i64 0, i64 0), i64 31, i32 1)
14; CHECK: movups _.str3
15 br label %bb
16
17return:
18 ret void
19}
20
21declare void @llvm.memcpy.i64(i8* nocapture, i8* nocapture, i64, i32) nounwind
22
23; CHECK: .align 3
24; CHECK-NEXT: _.str1:
25; CHECK-NEXT: .asciz "DHRYSTONE PROGRAM, SOME STRING"
26; CHECK-NEXT: .align 3
27; CHECK-NEXT: _.str3: