Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / Transforms / HotColdSplit / resume.ll
blob8c1ff1b01c00caa4a0f316c48d72b51eed73717f
1 ; RUN: opt -passes=hotcoldsplit -hotcoldsplit-threshold=-1 -S < %s | FileCheck %s
3 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-apple-macosx10.14.0"
6 ; Consider `resume` to be cold.
8 ; CHECK-LABEL: define {{.*}}@foo.cold.1(
9 ; CHECK: call {{.*}}@sink(
11 declare void @sink() cold
13 define i32 @foo() personality i8 0 {
14 entry:
15   br i1 undef, label %pre-resume-eh, label %normal
17 pre-resume-eh:
18   call void @sink()
19   br label %resume-eh
21 resume-eh:
22   resume i32 undef
24 normal:
25   ret i32 0