llvm-project
19 строк · 786.0 Байт
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2; RUN: opt -passes=rewrite-statepoints-for-gc -S < %s | FileCheck %s
3
4target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
5target triple = "x86_64-apple-macosx10.11.0"
6
7declare cc42 double @llvm.experimental.deoptimize.f64(...)
8
9define double @caller_3() gc "statepoint-example" {
10; CHECK-LABEL: @caller_3(
11; CHECK-NEXT: entry:
12; CHECK-NEXT: [[SAFEPOINT_TOKEN:%.*]] = call cc42 token (i64, i32, ptr, i32, i32, ...) @llvm.experimental.gc.statepoint.p0(i64 2882400000, i32 0, ptr elementtype(void ()) @__llvm_deoptimize, i32 0, i32 0, i32 0, i32 0) [ "deopt"() ]
13; CHECK-NEXT: unreachable
14;
15
16entry:
17%val = call cc42 double(...) @llvm.experimental.deoptimize.f64() [ "deopt"() ]
18ret double %val
19}
20