blob: 9c269d3dab11a1ebf3d584affd2509013289a8c9 [file] [log] [blame]
Dylan McKay9a9ae992018-11-05 05:00:44 +00001; RUN: llc < %s -march=avr | FileCheck %s
2
3%"fmt::Formatter" = type { i32, { i8*, void (i8*)** } }
4
5@str.1b = external constant [0 x i8]
6
7define void @"TryFromIntError::Debug"(%"fmt::Formatter"* dereferenceable(32)) unnamed_addr #0 personality i32 (...)* @rust_eh_personality {
8; CHECK-LABEL: "TryFromIntError::Debug"
9start:
10 %builder = alloca i8, align 8
11 %1 = getelementptr inbounds %"fmt::Formatter", %"fmt::Formatter"* %0, i16 0, i32 1
12 %2 = bitcast { i8*, void (i8*)** }* %1 to {}**
13 %3 = load {}*, {}** %2, align 2
14 %4 = getelementptr inbounds %"fmt::Formatter", %"fmt::Formatter"* %0, i16 0, i32 1, i32 1
15 %5 = load void (i8*)**, void (i8*)*** %4, align 2
16 %6 = getelementptr inbounds void (i8*)*, void (i8*)** %5, i16 3
17 %7 = bitcast void (i8*)** %6 to i8 ({}*, i8*, i16)**
18 %8 = load i8 ({}*, i8*, i16)*, i8 ({}*, i8*, i16)** %7, align 2
19 %9 = tail call i8 %8({}* nonnull %3, i8* noalias nonnull readonly getelementptr inbounds ([0 x i8], [0 x i8]* @str.1b, i16 0, i16 0), i16 15)
20 unreachable
21}
22
23declare i32 @rust_eh_personality(...) unnamed_addr
24
25attributes #0 = { uwtable }