brintos

brintos / llvm-project-archived public Read only

0
0
Text · 929 B · 360eaa1 Raw
32 lines · plain
1; regresstion test for https://github.com/llvm/llvm-project/issues/609622; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s3; RUN: llvm-modextract -b -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=M0 %s4; RUN: llvm-modextract -b -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=M1 %s5 6target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"7target triple = "x86_64-unknown-linux-gnu"8 9@i = ifunc ptr (ptr, i64), ptr @hoge10 11@g = constant i8 1, !type !012@assoc = private constant i8 2, !associated !113 14define ptr @hoge() !type !2 {15bb:16  ret ptr null17}18 19; M0: @g = external constant20; M0: @i = ifunc ptr (ptr, i64), ptr @hoge21; M0: define ptr @hoge()22; M0-NOT: @assoc23; M1: @g = constant i8 124; M1: @assoc = private constant i8 225; M1-NOT: @i = ifunc ptr (ptr, i64), ptr @hoge26; M1-NOT: define ptr @hoge()27 28!0 = !{i32 0, !"typeid"}29!1 = !{ptr @g}30!2 = !{i64 0, !3}31!3 = distinct !{}32