xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/unaligned-load.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i386-apple-darwin10.0 -mcpu=core2  -relocation-model=dynamic-no-pic --asm-verbose=0   | FileCheck -check-prefix=I386 %s
2*9880d681SAndroid Build Coastguard Worker; 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*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-apple-darwin10.0 -mcpu=corei7 -relocation-model=dynamic-no-pic --asm-verbose=0 | FileCheck -check-prefix=COREI7 %s
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker@.str1 = internal constant [31 x i8] c"DHRYSTONE PROGRAM, SOME STRING\00", align 8
6*9880d681SAndroid Build Coastguard Worker@.str3 = internal constant [31 x i8] c"DHRYSTONE PROGRAM, 2'ND STRING\00", align 8
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Workerdefine void @func() nounwind ssp {
9*9880d681SAndroid Build Coastguard Workerentry:
10*9880d681SAndroid Build Coastguard Worker  %String2Loc = alloca [31 x i8], align 1
11*9880d681SAndroid Build Coastguard Worker  br label %bb
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Workerbb:                                               ; preds = %bb, %entry
14*9880d681SAndroid Build Coastguard Worker  %String2Loc9 = getelementptr inbounds [31 x i8], [31 x i8]* %String2Loc, i64 0, i64 0
15*9880d681SAndroid Build Coastguard Worker  call void @llvm.memcpy.p0i8.p0i8.i64(i8* %String2Loc9, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str3, i64 0, i64 0), i64 31, i32 1, i1 false)
16*9880d681SAndroid Build Coastguard Worker  br label %bb
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Workerreturn:                                           ; No predecessors!
19*9880d681SAndroid Build Coastguard Worker  ret void
20*9880d681SAndroid Build Coastguard Worker}
21*9880d681SAndroid Build Coastguard Worker
22*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Worker; I386: calll {{_?}}memcpy
25*9880d681SAndroid Build Coastguard Worker
26*9880d681SAndroid Build Coastguard Worker; CORE2: movabsq
27*9880d681SAndroid Build Coastguard Worker; CORE2: movabsq
28*9880d681SAndroid Build Coastguard Worker; CORE2: movabsq
29*9880d681SAndroid Build Coastguard Worker
30*9880d681SAndroid Build Coastguard Worker; COREI7: movups _.str3
31*9880d681SAndroid Build Coastguard Worker
32*9880d681SAndroid Build Coastguard Worker; CORE2: .section
33*9880d681SAndroid Build Coastguard Worker; CORE2: .p2align  3
34*9880d681SAndroid Build Coastguard Worker; CORE2-NEXT: _.str1:
35*9880d681SAndroid Build Coastguard Worker; CORE2-NEXT: .asciz "DHRYSTONE PROGRAM, SOME STRING"
36*9880d681SAndroid Build Coastguard Worker; CORE2: .p2align 3
37*9880d681SAndroid Build Coastguard Worker; CORE2-NEXT: _.str3:
38