1 ; RUN: opt -S -passes=lowertypetests %s | llc -asm-verbose=false | FileCheck %s
3 target datalayout = "e-p:64:64"
4 target triple = "x86_64-unknown-linux-gnu"
8 ; CHECK-NEXT: .quad .L.cfi.jumptable
9 ; CHECK-NEXT: .quad .L.cfi.jumptable
10 ; CHECK-NEXT: .quad f2
11 ; CHECK-NEXT: .quad f3
12 ; CHECK-NEXT: .quad f3.cfi
13 @a = global [6 x ptr] [ptr no_cfi @f1, ptr @f1, ptr @f2, ptr no_cfi @f2, ptr @f3, ptr no_cfi @f3]
15 declare !type !0 void @f1()
17 define internal void @f2() !type !0 {
21 define void @f3() #0 !type !0 {
25 declare i1 @llvm.type.test(ptr %ptr, metadata %bitset) nounwind readnone
27 define i1 @foo(ptr %p) {
28 %x = call i1 @llvm.type.test(ptr %p, metadata !"typeid1")
32 !llvm.module.flags = !{!1}
34 attributes #0 = { "cfi-canonical-jump-table" }
36 !0 = !{i32 0, !"typeid1"}
37 !1 = !{i32 4, !"CFI Canonical Jump Tables", i32 0}