1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2 ; RUN: llc -mtriple=ppc64le-unknown-linux-gnu < %s | FileCheck %s
4 @id = private unnamed_addr constant [4 x i8] c"@id\00", align 1
5 @id2 = private unnamed_addr constant [5 x i8] c"@id2\00", align 1
7 ; Higher-aligned dummy to make sure it is first in the string pool.
8 @dummy = private unnamed_addr constant [1 x i32] [i32 42], align 4
10 define ptr @test1() personality ptr @__gnu_objc_personality_v0 {
14 ; CHECK-NEXT: stdu 1, -32(1)
15 ; CHECK-NEXT: std 0, 48(1)
16 ; CHECK-NEXT: .cfi_def_cfa_offset 32
17 ; CHECK-NEXT: .cfi_offset lr, 16
18 ; CHECK-NEXT: addis 3, 2, .Ldummy@toc@ha
19 ; CHECK-NEXT: addi 3, 3, .Ldummy@toc@l
22 invoke void @foo(ptr @dummy)
23 to label %cont unwind label %unwind
29 %lp = landingpad { ptr, i32 }
31 resume { ptr, i32 } %lp
34 define i32 @test2() personality ptr @__gnu_objc_personality_v0 {
39 %id = tail call i32 @llvm.eh.typeid.for(ptr @id2)
43 declare i32 @__gnu_objc_personality_v0(...)
45 declare i32 @llvm.eh.typeid.for(ptr)