1; RUN: opt -S -passes=lowertypetests %s | llc -asm-verbose=false | FileCheck %s 2 3target datalayout = "e-p:64:64" 4target triple = "x86_64-unknown-linux-gnu" 5 6; CHECK: a: 7; CHECK-NEXT: .quad f1 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] 14 15declare !type !0 void @f1() 16 17define internal void @f2() !type !0 { 18 ret void 19} 20 21define void @f3() #0 !type !0 { 22 ret void 23} 24 25declare i1 @llvm.type.test(ptr %ptr, metadata %bitset) nounwind readnone 26 27define i1 @foo(ptr %p) { 28 %x = call i1 @llvm.type.test(ptr %p, metadata !"typeid1") 29 ret i1 %x 30} 31 32!llvm.module.flags = !{!1} 33 34attributes #0 = { "cfi-canonical-jump-table" } 35 36!0 = !{i32 0, !"typeid1"} 37!1 = !{i32 4, !"CFI Canonical Jump Tables", i32 0} 38