blob: 9f704898d688831e230ed21b1ab306c0228deacc [file] [log] [blame]
Evan Chenga5e13622011-01-07 19:35:30 +00001; RUN: llc < %s -mtriple=i386-apple-darwin10.0 -mcpu=core2 -relocation-model=dynamic-no-pic --asm-verbose=0 | FileCheck -check-prefix=I386 %s
2; RUN: llc < %s -mtriple=x86_64-apple-darwin10.0 -mcpu=core2 -relocation-model=dynamic-no-pic --asm-verbose=0 | FileCheck -check-prefix=CORE2 %s
3; RUN: llc < %s -mtriple=x86_64-apple-darwin10.0 -mcpu=corei7 -relocation-model=dynamic-no-pic --asm-verbose=0 | FileCheck -check-prefix=COREI7 %s
Bill Wendling77bd09b2009-11-19 01:33:57 +00004
5@.str1 = internal constant [31 x i8] c"DHRYSTONE PROGRAM, SOME STRING\00", align 8
6@.str3 = internal constant [31 x i8] c"DHRYSTONE PROGRAM, 2'ND STRING\00", align 8
7
8define void @func() nounwind ssp {
9entry:
10 %String2Loc = alloca [31 x i8], align 1
11 br label %bb
12
13bb:
14 %String2Loc9 = getelementptr inbounds [31 x i8]* %String2Loc, i64 0, i64 0
15 call void @llvm.memcpy.i64(i8* %String2Loc9, i8* getelementptr inbounds ([31 x i8]* @.str3, i64 0, i64 0), i64 31, i32 1)
Evan Chenga5e13622011-01-07 19:35:30 +000016; I386: calll {{_?}}memcpy
17
18; CORE2: movabsq
19; CORE2: movabsq
20; CORE2: movabsq
21
22; COREI7: movups _.str3
Bill Wendling77bd09b2009-11-19 01:33:57 +000023 br label %bb
24
25return:
26 ret void
27}
28
29declare void @llvm.memcpy.i64(i8* nocapture, i8* nocapture, i64, i32) nounwind
30
Evan Chenga5e13622011-01-07 19:35:30 +000031; CORE2: .section
Cameron Zwarich13350222011-04-13 20:36:04 +000032; CORE2: .align 3
Evan Chenga5e13622011-01-07 19:35:30 +000033; CORE2-NEXT: _.str1:
34; CORE2-NEXT: .asciz "DHRYSTONE PROGRAM, SOME STRING"
Cameron Zwarich13350222011-04-13 20:36:04 +000035; CORE2: .align 3
Evan Chenga5e13622011-01-07 19:35:30 +000036; CORE2-NEXT: _.str3: