1 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
2 target triple = "x86_64-grtev4-linux-gnu"
4 %struct.A = type { ptr }
5 %struct.B = type { ptr }
7 @_ZTV1B = linkonce_odr constant { [4 x ptr] } { [4 x ptr] [ptr null, ptr undef, ptr @_ZN1B1fEi, ptr @_ZN1B1nEi] }, !type !0
12 define linkonce_odr i32 @test(ptr %obj, i32 %a) comdat {
14 %vtable5 = load ptr, ptr %obj
16 %0 = tail call { ptr, i1 } @llvm.type.checked.load(ptr %vtable5, i32 8, metadata !"_ZTS1A")
17 %1 = extractvalue { ptr, i1 } %0, 1
18 br i1 %1, label %cont, label %trap
21 tail call void @llvm.trap()
25 %2 = extractvalue { ptr, i1 } %0, 0
27 %call = tail call i32 %2(ptr nonnull %obj, i32 %a)
32 define linkonce_odr i32 @testb(ptr %obj, i32 %a) comdat {
34 %vtable5 = load ptr, ptr %obj
36 %0 = tail call { ptr, i1 } @llvm.type.checked.load(ptr %vtable5, i32 0, metadata !"_ZTS1A")
37 %1 = extractvalue { ptr, i1 } %0, 1
38 br i1 %1, label %cont, label %trap
41 tail call void @llvm.trap()
45 %2 = extractvalue { ptr, i1 } %0, 0
47 %call = tail call i32 %2(ptr nonnull %obj, i32 %a)
52 declare { ptr, i1 } @llvm.type.checked.load(ptr, i32, metadata)
53 declare void @llvm.trap()
55 define internal i32 @_ZN1B1fEi(ptr %this, i32 %a) {
59 define internal i32 @_ZN1B1nEi(ptr %this, i32 %a) {
64 !0 = !{i64 16, !"_ZTS1B"}