1; REQUIRES: x86-registered-target 2; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o - %s | llvm-modextract -b -n 0 -o - | llvm-dis | FileCheck %s 3 4target triple = "x86_64-unknown-linux-gnu" 5 6; CHECK: module asm ".lto_set_conditional a,a.[[HASH:[0-9a-f]+]]" 7 8define void @b() { 9 %f = alloca ptr, align 8 10 ; CHECK: store{{.*}} @a.[[HASH]],{{.*}} %f 11 store ptr @a, ptr %f, align 8 12 ; CHECK: %1 = call ptr asm sideeffect "leaq a(%rip) 13 %1 = call ptr asm sideeffect "leaq a(%rip), $0\0A\09", "=r,~{dirflag},~{fpsr},~{flags}"() 14 ret void 15} 16 17; CHECK: define{{.*}} @a.[[HASH]](){{.*}} !type 18define internal void @a() !type !0 { 19 ret void 20} 21 22!0 = !{i64 0, !"typeid1"} 23