xref: /llvm-project/llvm/test/CodeGen/AArch64/compute-call-frame-size-unreachable-pass.ll (revision 1ee315ae7964c8433b772e0b5d667834994ba753)
1; RUN: llc < %s -mtriple aarch64--
2
3; This tests that the MFI assert in unreachableblockelim pass
4; does not trigger
5
6%struct.ngtcp2_crypto_aead = type { ptr, i64 }
7%struct.ngtcp2_crypto_aead_ctx = type { ptr }
8
9; Function Attrs: noinline optnone
10define internal fastcc void @decrypt_pkt() unnamed_addr #0 !type !0 !type !1 {
11entry:
12  br i1 false, label %cont, label %trap, !nosanitize !2
13
14trap:                                             ; preds = %entry
15  unreachable, !nosanitize !2
16
17cont:                                             ; preds = %entry
18  %call = call i32 undef(ptr undef, ptr undef, ptr undef, ptr undef, i64 undef, ptr undef, i64 undef, ptr undef, i64 undef)
19  ret void
20}
21
22attributes #0 = { noinline optnone }
23
24!0 = !{i64 0, !"_ZTSFlPhPK18ngtcp2_crypto_aeadPKhmS4_mlP16ngtcp2_crypto_kmPFiS_S2_PK22ngtcp2_crypto_aead_ctxS4_mS4_mS4_mEE"}
25!1 = !{i64 0, !"_ZTSFlPvPKvS1_mS1_mlS_S_E.generalized"}
26!2 = !{}
27