blob: b61803d10ce409d3168fe227c0ab3fd0c22aa08c [file] [log] [blame]
Chris Lattner965ebea2010-01-19 06:39:54 +00001; RUN: llc < %s -mtriple=x86_64-apple-darwin10.0 -relocation-model=dynamic-no-pic --asm-verbose=0 | FileCheck %s
Bill Wendling73fb12e2009-11-19 01:33:57 +00002
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"
Chris Lattner32db11a2010-01-22 19:51:08 +000026; CHECK: .align 3
Bill Wendling73fb12e2009-11-19 01:33:57 +000027; CHECK-NEXT: _.str3: