blob: 8c1e0c160d30345363f4dc377704b0cf4b98aa7c [file] [log] [blame]
Hal Finkelcef9e522017-04-11 02:03:17 +00001; RUN: llc -O1 -verify-machineinstrs < %s
2target datalayout = "E-m:e-i64:64-n32:64"
3target triple = "powerpc64-unknown-linux-gnu"
4
5; Function Attrs: uwtable
6define fastcc void @_Crash_Fn() unnamed_addr #0 {
7entry-block:
8 br label %_Label_0
9
10_Label_0: ; preds = %_Label_0, %entry-block
11 %result.0138 = phi i128 [ %5, %_Label_0 ], [ 0, %entry-block ]
12 %iter.sroa.0.0137 = phi i8* [ %0, %_Label_0 ], [ undef, %entry-block ]
13 %0 = getelementptr inbounds i8, i8* %iter.sroa.0.0137, i64 1
14 %1 = tail call { i128, i1 } @llvm.smul.with.overflow.i128(i128 %result.0138, i128 undef) #2
15 %2 = extractvalue { i128, i1 } %1, 0
16 %3 = tail call { i128, i1 } @llvm.sadd.with.overflow.i128(i128 %2, i128 0) #2
17 %4 = extractvalue { i128, i1 } %3, 1
18 %5 = extractvalue { i128, i1 } %3, 0
19 %6 = icmp eq i8* %0, null
20 br i1 %6, label %bb66.loopexit, label %_Label_0
21
22bb66.loopexit: ; preds = %_Label_0
23 unreachable
24}
25
26; Function Attrs: nounwind readnone
27declare { i128, i1 } @llvm.sadd.with.overflow.i128(i128, i128) #1
28
29; Function Attrs: nounwind readnone
30declare { i128, i1 } @llvm.smul.with.overflow.i128(i128, i128) #1
31
32attributes #0 = { uwtable }
33attributes #1 = { nounwind readnone }
34attributes #2 = { nounwind }