• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mtriple=i686-linux -asm-verbose | FileCheck %s
2; Check that register copies in the landing pad come after the EH_LABEL
3
4declare i32 @f()
5
6define i32 @phi(i32 %x) personality i32 (...)* @__gxx_personality_v0 {
7entry:
8	%a = invoke i32 @f()
9			to label %cont unwind label %lpad		; <i32> [#uses=1]
10
11cont:		; preds = %entry
12	%b = invoke i32 @f()
13			to label %cont2 unwind label %lpad		; <i32> [#uses=1]
14
15cont2:		; preds = %cont
16	ret i32 %b
17
18lpad:		; preds = %cont, %entry
19	%v = phi i32 [ %x, %entry ], [ %a, %cont ]		; <i32> [#uses=1]
20        %exn = landingpad {i8*, i32}
21                 cleanup
22	ret i32 %v
23}
24
25; CHECK: lpad
26; CHECK-NEXT: .cfi_def_cfa_offset 16
27; CHECK-NEXT: Ltmp
28
29declare i32 @__gxx_personality_v0(...)
30