xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/ppc-empty-fs.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; This guarantees that we add the default set of features to the current feature
3*9880d681SAndroid Build Coastguard Worker; string. We won't successfully legalize the types here without +64bit being
4*9880d681SAndroid Build Coastguard Worker; silently added.
5*9880d681SAndroid Build Coastguard Workertarget datalayout = "E-m:e-i64:64-n32:64"
6*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc64-unknown-linux-gnu"
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker%struct.fab = type { float, float }
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind
11*9880d681SAndroid Build Coastguard Workerdefine void @func_fab(%struct.fab* noalias sret %agg.result, i64 %x.coerce) #0 {
12*9880d681SAndroid Build Coastguard Workerentry:
13*9880d681SAndroid Build Coastguard Worker  %x = alloca %struct.fab, align 8
14*9880d681SAndroid Build Coastguard Worker  %0 = bitcast %struct.fab* %x to i64*
15*9880d681SAndroid Build Coastguard Worker  store i64 %x.coerce, i64* %0, align 1
16*9880d681SAndroid Build Coastguard Worker  %1 = bitcast %struct.fab* %agg.result to i8*
17*9880d681SAndroid Build Coastguard Worker  %2 = bitcast %struct.fab* %x to i8*
18*9880d681SAndroid Build Coastguard Worker  call void @llvm.memcpy.p0i8.p0i8.i64(i8* %1, i8* %2, i64 8, 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 Worker; CHECK: func_fab
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind
25*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture readonly, i64, i32, i1) #1
26*9880d681SAndroid Build Coastguard Worker
27*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "target-features"="" "unsafe-fp-math"="false" "use-soft-float"="false" }
28*9880d681SAndroid Build Coastguard Workerattributes #1 = { nounwind }
29*9880d681SAndroid Build Coastguard Worker
30*9880d681SAndroid Build Coastguard Worker!llvm.ident = !{!0}
31*9880d681SAndroid Build Coastguard Worker
32*9880d681SAndroid Build Coastguard Worker!0 = !{!"clang version 3.7.0 (trunk 233227) (llvm/trunk 233226)"}
33