Fix PR5391: support early clobber physical register def tied with a use (ewwww)
[oota-llvm.git] / test / CodeGen / X86 / unaligned-load.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin10.0 -relocation-model=dynamic-no-pic | not grep {movaps\t_.str3}
2 ; RUN: llc < %s -mtriple=x86_64-apple-darwin10.0 -relocation-model=dynamic-no-pic | FileCheck %s
3
4 @.str1 = internal constant [31 x i8] c"DHRYSTONE PROGRAM, SOME STRING\00", align 8
5 @.str3 = internal constant [31 x i8] c"DHRYSTONE PROGRAM, 2'ND STRING\00", align 8
6
7 define void @func() nounwind ssp {
8 entry:
9   %String2Loc = alloca [31 x i8], align 1
10   br label %bb
11
12 bb:
13   %String2Loc9 = getelementptr inbounds [31 x i8]* %String2Loc, i64 0, i64 0
14   call void @llvm.memcpy.i64(i8* %String2Loc9, i8* getelementptr inbounds ([31 x i8]* @.str3, i64 0, i64 0), i64 31, i32 1)
15 ; CHECK: movups _.str3
16   br label %bb
17
18 return:
19   ret void
20 }
21
22 declare void @llvm.memcpy.i64(i8* nocapture, i8* nocapture, i64, i32) nounwind
23
24 ; CHECK: .align  3
25 ; CHECK-NEXT: _.str1:
26 ; CHECK-NEXT: .asciz "DHRYSTONE PROGRAM, SOME STRING"
27 ; CHECK-NEXT: .align 3
28 ; CHECK-NEXT: _.str3: