blob: c89ca2ea2ab97c74e7a48b226978728772cf6a67 [file] [log] [blame]
Ehsan Amiria538b0f2016-08-03 18:17:35 +00001; RUN: llc -verify-machineinstrs < %s | FileCheck %s
Eric Christopher9f74ca52015-03-26 00:57:33 +00002; This guarantees that we add the default set of features to the current feature
3; string. We won't successfully legalize the types here without +64bit being
4; silently added.
5target datalayout = "E-m:e-i64:64-n32:64"
6target triple = "powerpc64-unknown-linux-gnu"
7
8%struct.fab = type { float, float }
9
10; Function Attrs: nounwind
11define void @func_fab(%struct.fab* noalias sret %agg.result, i64 %x.coerce) #0 {
12entry:
13 %x = alloca %struct.fab, align 8
14 %0 = bitcast %struct.fab* %x to i64*
15 store i64 %x.coerce, i64* %0, align 1
16 %1 = bitcast %struct.fab* %agg.result to i8*
17 %2 = bitcast %struct.fab* %x to i8*
Pete Cooper67cf9a72015-11-19 05:56:52 +000018 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %1, i8* %2, i64 8, i32 4, i1 false)
Eric Christopher9f74ca52015-03-26 00:57:33 +000019 ret void
20}
21
22; CHECK: func_fab
23
24; Function Attrs: nounwind
Pete Cooper67cf9a72015-11-19 05:56:52 +000025declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture readonly, i64, i32, i1) #1
Eric Christopher9f74ca52015-03-26 00:57:33 +000026
27attributes #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" }
28attributes #1 = { nounwind }
29
30!llvm.ident = !{!0}
31
32!0 = !{!"clang version 3.7.0 (trunk 233227) (llvm/trunk 233226)"}