brintos

brintos / llvm-project-archived public Read only

0
0
Text · 666 B · d8ebae1 Raw
23 lines · plain
1; REQUIRES: x86-registered-target2; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o - %s | llvm-modextract -b -n 0 -o - | llvm-dis | FileCheck %s3 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 810  ; CHECK: store{{.*}} @a.[[HASH]],{{.*}} %f11  store ptr @a, ptr %f, align 812  ; 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 void15}16 17; CHECK: define{{.*}} @a.[[HASH]](){{.*}} !type18define internal void @a() !type !0 {19  ret void20}21 22!0 = !{i64 0, !"typeid1"}23