xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/fsl-e5500.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker;
2*9880d681SAndroid Build Coastguard Worker; Test support for Freescale e5500 and its higher memcpy inlining thresholds.
3*9880d681SAndroid Build Coastguard Worker;
4*9880d681SAndroid Build Coastguard Worker; RUN: llc -mcpu=e5500 < %s 2>&1 | FileCheck %s
5*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: not a recognized processor for this target
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workertarget datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
8*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc64-fsl-linux"
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker%struct.teststruct = type { [24 x i32], i32 }
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workerdefine void @copy(%struct.teststruct* noalias nocapture sret %agg.result, %struct.teststruct* nocapture %in) nounwind {
13*9880d681SAndroid Build Coastguard Workerentry:
14*9880d681SAndroid Build Coastguard Worker; CHECK: @copy
15*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: bl memcpy
16*9880d681SAndroid Build Coastguard Worker  %0 = bitcast %struct.teststruct* %agg.result to i8*
17*9880d681SAndroid Build Coastguard Worker  %1 = bitcast %struct.teststruct* %in to i8*
18*9880d681SAndroid Build Coastguard Worker  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %0, i8* %1, i64 100, i32 4, i1 false)
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