Evan Cheng | a5e1362 | 2011-01-07 19:35:30 +0000 | [diff] [blame] | 1 | ; 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 Wendling | 77bd09b | 2009-11-19 01:33:57 +0000 | [diff] [blame] | 4 | |
| 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 | |
| 8 | define void @func() nounwind ssp { |
| 9 | entry: |
| 10 | %String2Loc = alloca [31 x i8], align 1 |
| 11 | br label %bb |
| 12 | |
Chris Lattner | b85e4eb | 2011-06-18 06:05:24 +0000 | [diff] [blame^] | 13 | bb: ; preds = %bb, %entry |
Bill Wendling | 77bd09b | 2009-11-19 01:33:57 +0000 | [diff] [blame] | 14 | %String2Loc9 = getelementptr inbounds [31 x i8]* %String2Loc, i64 0, i64 0 |
Chris Lattner | b85e4eb | 2011-06-18 06:05:24 +0000 | [diff] [blame^] | 15 | call void @llvm.memcpy.p0i8.p0i8.i64(i8* %String2Loc9, i8* getelementptr inbounds ([31 x i8]* @.str3, i64 0, i64 0), i64 31, i32 1, i1 false) |
| 16 | br label %bb |
| 17 | |
| 18 | return: ; No predecessors! |
| 19 | ret void |
| 20 | } |
| 21 | |
| 22 | declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind |
| 23 | |
Evan Cheng | a5e1362 | 2011-01-07 19:35:30 +0000 | [diff] [blame] | 24 | ; I386: calll {{_?}}memcpy |
| 25 | |
| 26 | ; CORE2: movabsq |
| 27 | ; CORE2: movabsq |
| 28 | ; CORE2: movabsq |
| 29 | |
| 30 | ; COREI7: movups _.str3 |
Bill Wendling | 77bd09b | 2009-11-19 01:33:57 +0000 | [diff] [blame] | 31 | |
Evan Cheng | a5e1362 | 2011-01-07 19:35:30 +0000 | [diff] [blame] | 32 | ; CORE2: .section |
Cameron Zwarich | 1335022 | 2011-04-13 20:36:04 +0000 | [diff] [blame] | 33 | ; CORE2: .align 3 |
Evan Cheng | a5e1362 | 2011-01-07 19:35:30 +0000 | [diff] [blame] | 34 | ; CORE2-NEXT: _.str1: |
| 35 | ; CORE2-NEXT: .asciz "DHRYSTONE PROGRAM, SOME STRING" |
Cameron Zwarich | 1335022 | 2011-04-13 20:36:04 +0000 | [diff] [blame] | 36 | ; CORE2: .align 3 |
Evan Cheng | a5e1362 | 2011-01-07 19:35:30 +0000 | [diff] [blame] | 37 | ; CORE2-NEXT: _.str3: |