diff options
Diffstat (limited to 'llvm/test/Bitcode/compatibility.ll')
-rw-r--r-- | llvm/test/Bitcode/compatibility.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/compatibility.ll b/llvm/test/Bitcode/compatibility.ll index a1474df6d94..6c3a6887346 100644 --- a/llvm/test/Bitcode/compatibility.ll +++ b/llvm/test/Bitcode/compatibility.ll @@ -160,6 +160,10 @@ $comdat.samesize = comdat samesize @g.section = global i32 0, section "_DATA" ; CHECK: @g.section = global i32 0, section "_DATA" +; Global Variables -- partition +@g.partition = global i32 0, partition "part" +; CHECK: @g.partition = global i32 0, partition "part" + ; Global Variables -- comdat @comdat.any = global i32 0, comdat ; CHECK: @comdat.any = global i32 0, comdat @@ -251,6 +255,10 @@ declare void @g.f1() @a.local_unnamed_addr = local_unnamed_addr alias i32, i32* @g.local_unnamed_addr ; CHECK: @a.local_unnamed_addr = local_unnamed_addr alias i32, i32* @g.local_unnamed_addr +; Aliases -- partition +; CHECK: @alias.partition = alias i32, i32* @g.partition, partition "part" +@alias.partition = alias i32, i32* @g.partition, partition "part" + ;; IFunc ; Format @<Name> = [Linkage] [Visibility] ifunc <IFuncTy>, ; <ResolverTy>* @<Resolver> @@ -271,6 +279,10 @@ declare void @g.f1() @ifunc.protected = protected ifunc void (), i8* ()* @ifunc_resolver ; CHECK: @ifunc.protected = protected ifunc void (), i8* ()* @ifunc_resolver +; IFunc -- partition +; CHECK: @ifunc.partition = ifunc void (), i8* ()* @ifunc_resolver, partition "part" +@ifunc.partition = ifunc void (), i8* ()* @ifunc_resolver, partition "part" + define i8* @ifunc_resolver() { entry: ret i8* null @@ -620,6 +632,12 @@ declare void @f.strictfp() #35 declare void @f.section() section "80" ; CHECK: declare void @f.section() section "80" +; Functions -- partition +define void @f.partition() partition "part" { +; CHECK: define void @f.partition() partition "part" + ret void +} + ; Functions -- comdat define void @f.comdat_any() comdat($comdat.any) { ; CHECK: define void @f.comdat_any() comdat($comdat.any) |