Sean Fertile | 57d46b8 | 2017-10-27 04:02:51 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple powerpc64le-unknown-linux-gnu |
| 2 | |
| 3 | ; void llvm::MachineMemOperand::refineAlignment(const llvm::MachineMemOperand*): |
| 4 | ; Assertion `MMO->getFlags() == getFlags() && "Flags mismatch !"' failed. |
| 5 | |
| 6 | declare void @_Z3fn11F(%class.F* byval align 8) local_unnamed_addr |
Daniel Neilson | 1e68724 | 2018-01-19 17:13:12 +0000 | [diff] [blame] | 7 | declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture writeonly, i8* nocapture readonly, i64, i1) |
Sean Fertile | 57d46b8 | 2017-10-27 04:02:51 +0000 | [diff] [blame] | 8 | declare signext i32 @_ZN1F11isGlobalRegEv(%class.F*) local_unnamed_addr |
| 9 | declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) |
| 10 | declare void @_Z10EmitLValuev(%class.F* sret) local_unnamed_addr |
| 11 | declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) |
| 12 | |
| 13 | %class.F = type { i32, i64, i8, [64 x i8], i8, i32* } |
| 14 | |
| 15 | define signext i32 @_Z29EmitOMPAtomicSimpleUpdateExpr1F(%class.F* byval align 8 %p1) local_unnamed_addr { |
| 16 | entry: |
| 17 | call void @_Z3fn11F(%class.F* byval nonnull align 8 %p1) |
| 18 | %call = call signext i32 @_ZN1F11isGlobalRegEv(%class.F* nonnull %p1) |
| 19 | ret i32 %call |
| 20 | } |
| 21 | |
| 22 | define void @_Z3fn2v() local_unnamed_addr { |
| 23 | entry: |
| 24 | %agg.tmp1 = alloca %class.F, align 8 |
| 25 | %XLValue = alloca %class.F, align 8 |
| 26 | %0 = bitcast %class.F* %XLValue to i8* |
| 27 | call void @llvm.lifetime.start.p0i8(i64 96, i8* nonnull %0) |
| 28 | call void @_Z10EmitLValuev(%class.F* nonnull sret %XLValue) |
| 29 | %1 = bitcast %class.F* %agg.tmp1 to i8* |
| 30 | call void @llvm.lifetime.start.p0i8(i64 96, i8* nonnull %1) |
Daniel Neilson | 1e68724 | 2018-01-19 17:13:12 +0000 | [diff] [blame] | 31 | call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 8 nonnull %1, i8* align 8 nonnull %0, i64 96, i1 false) |
Sean Fertile | 57d46b8 | 2017-10-27 04:02:51 +0000 | [diff] [blame] | 32 | call void @_Z3fn11F(%class.F* byval nonnull align 8 %XLValue) |
| 33 | %call.i = call signext i32 @_ZN1F11isGlobalRegEv(%class.F* nonnull %agg.tmp1) |
| 34 | call void @llvm.lifetime.end.p0i8(i64 96, i8* nonnull %1) |
| 35 | call void @llvm.lifetime.end.p0i8(i64 96, i8* nonnull %0) |
| 36 | ret void |
| 37 | } |