diff --git a/llvm/lib/Transforms/Instrumentation/SanitizerBinaryMetadata.cpp b/llvm/lib/Transforms/Instrumentation/SanitizerBinaryMetadata.cpp --- a/llvm/lib/Transforms/Instrumentation/SanitizerBinaryMetadata.cpp +++ b/llvm/lib/Transforms/Instrumentation/SanitizerBinaryMetadata.cpp @@ -149,7 +149,8 @@ // Create a 0-sized object in a section, so that the section is not discarded // if all inputs have been discarded. - void createZeroSizedObjectInSection(Type *Ty, StringRef SectionSuffix); + void createZeroSizedObjectInSection(Type *Ty, StringRef SectionSuffix, + GlobalObject &Ctor); // Returns the target-dependent section name. StringRef getSectionName(StringRef SectionSuffix); @@ -213,7 +214,7 @@ } appendToGlobalCtors(Mod, Ctor, kCtorDtorPriority, CtorData); appendToGlobalDtors(Mod, Dtor, kCtorDtorPriority, DtorData); - createZeroSizedObjectInSection(Int8PtrTy, MI->SectionSuffix); + createZeroSizedObjectInSection(Int8PtrTy, MI->SectionSuffix, *Ctor); } return true; @@ -293,16 +294,23 @@ } void SanitizerBinaryMetadata::createZeroSizedObjectInSection( - Type *Ty, StringRef SectionSuffix) { + Type *Ty, StringRef SectionSuffix, GlobalObject &Ctor) { auto *DummyInit = ConstantAggregateZero::get(ArrayType::get(Ty, 0)); auto *DummyEntry = new GlobalVariable(Mod, DummyInit->getType(), true, GlobalVariable::ExternalLinkage, DummyInit, "__dummy_" + SectionSuffix); DummyEntry->setSection(getSectionName(SectionSuffix)); + // Associate the dummy entry with the Ctor, ensuring gc-sections does not + // discard it (lowers to the ELF section flag SHF_LINK_ORDER). + DummyEntry->setMetadata( + LLVMContext::MD_associated, + MDNode::get(Mod.getContext(), ValueAsMetadata::get(&Ctor))); DummyEntry->setVisibility(GlobalValue::HiddenVisibility); if (TargetTriple.supportsCOMDAT()) DummyEntry->setComdat(Mod.getOrInsertComdat(DummyEntry->getName())); - // Make sure the section isn't discarded by gc-sections. + // Make sure the dummy entry isn't discarded. This together with association + // with Ctor above should make sure that all supported linkers never discard + // the dummy entry nor section and its __start_ + __stop_ markers. appendToUsed(Mod, DummyEntry); } diff --git a/llvm/test/Instrumentation/SanitizerBinaryMetadata/atomics.ll b/llvm/test/Instrumentation/SanitizerBinaryMetadata/atomics.ll --- a/llvm/test/Instrumentation/SanitizerBinaryMetadata/atomics.ll +++ b/llvm/test/Instrumentation/SanitizerBinaryMetadata/atomics.ll @@ -8,344 +8,344 @@ %0 = load atomic i8, i8* %a unordered, align 1 ret i8 %0 } -; CHECK-LABEL: atomic8_load_unordered{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_load_unordered{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i8 @atomic8_load_monotonic(i8* %a) nounwind uwtable { entry: %0 = load atomic i8, i8* %a monotonic, align 1 ret i8 %0 } -; CHECK-LABEL: atomic8_load_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_load_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i8 @atomic8_load_acquire(i8* %a) nounwind uwtable { entry: %0 = load atomic i8, i8* %a acquire, align 1 ret i8 %0 } -; CHECK-LABEL: atomic8_load_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_load_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i8 @atomic8_load_seq_cst(i8* %a) nounwind uwtable { entry: %0 = load atomic i8, i8* %a seq_cst, align 1 ret i8 %0 } -; CHECK-LABEL: atomic8_load_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_load_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_store_unordered(i8* %a) nounwind uwtable { entry: store atomic i8 0, i8* %a unordered, align 1 ret void } -; CHECK-LABEL: atomic8_store_unordered{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_store_unordered{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_store_monotonic(i8* %a) nounwind uwtable { entry: store atomic i8 0, i8* %a monotonic, align 1 ret void } -; CHECK-LABEL: atomic8_store_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_store_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_store_release(i8* %a) nounwind uwtable { entry: store atomic i8 0, i8* %a release, align 1 ret void } -; CHECK-LABEL: atomic8_store_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_store_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_store_seq_cst(i8* %a) nounwind uwtable { entry: store atomic i8 0, i8* %a seq_cst, align 1 ret void } -; CHECK-LABEL: atomic8_store_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_store_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_xchg_monotonic(i8* %a) nounwind uwtable { entry: atomicrmw xchg i8* %a, i8 0 monotonic ret void } -; CHECK-LABEL: atomic8_xchg_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_xchg_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_add_monotonic(i8* %a) nounwind uwtable { entry: atomicrmw add i8* %a, i8 0 monotonic ret void } -; CHECK-LABEL: atomic8_add_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_add_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_sub_monotonic(i8* %a) nounwind uwtable { entry: atomicrmw sub i8* %a, i8 0 monotonic ret void } -; CHECK-LABEL: atomic8_sub_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_sub_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_and_monotonic(i8* %a) nounwind uwtable { entry: atomicrmw and i8* %a, i8 0 monotonic ret void } -; CHECK-LABEL: atomic8_and_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_and_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_or_monotonic(i8* %a) nounwind uwtable { entry: atomicrmw or i8* %a, i8 0 monotonic ret void } -; CHECK-LABEL: atomic8_or_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_or_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_xor_monotonic(i8* %a) nounwind uwtable { entry: atomicrmw xor i8* %a, i8 0 monotonic ret void } -; CHECK-LABEL: atomic8_xor_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_xor_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_nand_monotonic(i8* %a) nounwind uwtable { entry: atomicrmw nand i8* %a, i8 0 monotonic ret void } -; CHECK-LABEL: atomic8_nand_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_nand_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_xchg_acquire(i8* %a) nounwind uwtable { entry: atomicrmw xchg i8* %a, i8 0 acquire ret void } -; CHECK-LABEL: atomic8_xchg_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_xchg_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_add_acquire(i8* %a) nounwind uwtable { entry: atomicrmw add i8* %a, i8 0 acquire ret void } -; CHECK-LABEL: atomic8_add_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_add_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_sub_acquire(i8* %a) nounwind uwtable { entry: atomicrmw sub i8* %a, i8 0 acquire ret void } -; CHECK-LABEL: atomic8_sub_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_sub_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_and_acquire(i8* %a) nounwind uwtable { entry: atomicrmw and i8* %a, i8 0 acquire ret void } -; CHECK-LABEL: atomic8_and_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_and_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_or_acquire(i8* %a) nounwind uwtable { entry: atomicrmw or i8* %a, i8 0 acquire ret void } -; CHECK-LABEL: atomic8_or_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_or_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_xor_acquire(i8* %a) nounwind uwtable { entry: atomicrmw xor i8* %a, i8 0 acquire ret void } -; CHECK-LABEL: atomic8_xor_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_xor_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_nand_acquire(i8* %a) nounwind uwtable { entry: atomicrmw nand i8* %a, i8 0 acquire ret void } -; CHECK-LABEL: atomic8_nand_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_nand_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_xchg_release(i8* %a) nounwind uwtable { entry: atomicrmw xchg i8* %a, i8 0 release ret void } -; CHECK-LABEL: atomic8_xchg_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_xchg_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_add_release(i8* %a) nounwind uwtable { entry: atomicrmw add i8* %a, i8 0 release ret void } -; CHECK-LABEL: atomic8_add_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_add_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_sub_release(i8* %a) nounwind uwtable { entry: atomicrmw sub i8* %a, i8 0 release ret void } -; CHECK-LABEL: atomic8_sub_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_sub_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_and_release(i8* %a) nounwind uwtable { entry: atomicrmw and i8* %a, i8 0 release ret void } -; CHECK-LABEL: atomic8_and_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_and_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_or_release(i8* %a) nounwind uwtable { entry: atomicrmw or i8* %a, i8 0 release ret void } -; CHECK-LABEL: atomic8_or_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_or_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_xor_release(i8* %a) nounwind uwtable { entry: atomicrmw xor i8* %a, i8 0 release ret void } -; CHECK-LABEL: atomic8_xor_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_xor_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_nand_release(i8* %a) nounwind uwtable { entry: atomicrmw nand i8* %a, i8 0 release ret void } -; CHECK-LABEL: atomic8_nand_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_nand_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_xchg_acq_rel(i8* %a) nounwind uwtable { entry: atomicrmw xchg i8* %a, i8 0 acq_rel ret void } -; CHECK-LABEL: atomic8_xchg_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_xchg_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_add_acq_rel(i8* %a) nounwind uwtable { entry: atomicrmw add i8* %a, i8 0 acq_rel ret void } -; CHECK-LABEL: atomic8_add_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_add_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_sub_acq_rel(i8* %a) nounwind uwtable { entry: atomicrmw sub i8* %a, i8 0 acq_rel ret void } -; CHECK-LABEL: atomic8_sub_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_sub_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_and_acq_rel(i8* %a) nounwind uwtable { entry: atomicrmw and i8* %a, i8 0 acq_rel ret void } -; CHECK-LABEL: atomic8_and_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_and_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_or_acq_rel(i8* %a) nounwind uwtable { entry: atomicrmw or i8* %a, i8 0 acq_rel ret void } -; CHECK-LABEL: atomic8_or_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_or_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_xor_acq_rel(i8* %a) nounwind uwtable { entry: atomicrmw xor i8* %a, i8 0 acq_rel ret void } -; CHECK-LABEL: atomic8_xor_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_xor_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_nand_acq_rel(i8* %a) nounwind uwtable { entry: atomicrmw nand i8* %a, i8 0 acq_rel ret void } -; CHECK-LABEL: atomic8_nand_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_nand_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_xchg_seq_cst(i8* %a) nounwind uwtable { entry: atomicrmw xchg i8* %a, i8 0 seq_cst ret void } -; CHECK-LABEL: atomic8_xchg_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_xchg_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_add_seq_cst(i8* %a) nounwind uwtable { entry: atomicrmw add i8* %a, i8 0 seq_cst ret void } -; CHECK-LABEL: atomic8_add_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_add_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_sub_seq_cst(i8* %a) nounwind uwtable { entry: atomicrmw sub i8* %a, i8 0 seq_cst ret void } -; CHECK-LABEL: atomic8_sub_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_sub_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_and_seq_cst(i8* %a) nounwind uwtable { entry: atomicrmw and i8* %a, i8 0 seq_cst ret void } -; CHECK-LABEL: atomic8_and_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_and_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_or_seq_cst(i8* %a) nounwind uwtable { entry: atomicrmw or i8* %a, i8 0 seq_cst ret void } -; CHECK-LABEL: atomic8_or_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_or_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_xor_seq_cst(i8* %a) nounwind uwtable { entry: atomicrmw xor i8* %a, i8 0 seq_cst ret void } -; CHECK-LABEL: atomic8_xor_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_xor_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_nand_seq_cst(i8* %a) nounwind uwtable { entry: atomicrmw nand i8* %a, i8 0 seq_cst ret void } -; CHECK-LABEL: atomic8_nand_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic8_nand_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic8_cas_monotonic(i8* %a) nounwind uwtable { entry: @@ -354,10 +354,10 @@ cmpxchg i8* %a, i8 0, i8 1 monotonic seq_cst ret void } -; CHECK-LABEL: atomic8_cas_monotonic{{.*}}!pcsections !0 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 monotonic monotonic, align 1, !pcsections !2 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 monotonic acquire, align 1, !pcsections !2 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 monotonic seq_cst, align 1, !pcsections !2 +; CHECK-LABEL: atomic8_cas_monotonic{{.*}}!pcsections !2 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 monotonic monotonic, align 1, !pcsections !4 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 monotonic acquire, align 1, !pcsections !4 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 monotonic seq_cst, align 1, !pcsections !4 define void @atomic8_cas_acquire(i8* %a) nounwind uwtable { entry: @@ -366,10 +366,10 @@ cmpxchg i8* %a, i8 0, i8 1 acquire seq_cst ret void } -; CHECK-LABEL: atomic8_cas_acquire{{.*}}!pcsections !0 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 acquire monotonic, align 1, !pcsections !2 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 acquire acquire, align 1, !pcsections !2 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 acquire seq_cst, align 1, !pcsections !2 +; CHECK-LABEL: atomic8_cas_acquire{{.*}}!pcsections !2 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 acquire monotonic, align 1, !pcsections !4 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 acquire acquire, align 1, !pcsections !4 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 acquire seq_cst, align 1, !pcsections !4 define void @atomic8_cas_release(i8* %a) nounwind uwtable { entry: @@ -378,10 +378,10 @@ cmpxchg i8* %a, i8 0, i8 1 release seq_cst ret void } -; CHECK-LABEL: atomic8_cas_release{{.*}}!pcsections !0 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 release monotonic, align 1, !pcsections !2 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 release acquire, align 1, !pcsections !2 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 release seq_cst, align 1, !pcsections !2 +; CHECK-LABEL: atomic8_cas_release{{.*}}!pcsections !2 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 release monotonic, align 1, !pcsections !4 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 release acquire, align 1, !pcsections !4 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 release seq_cst, align 1, !pcsections !4 define void @atomic8_cas_acq_rel(i8* %a) nounwind uwtable { entry: @@ -390,10 +390,10 @@ cmpxchg i8* %a, i8 0, i8 1 acq_rel seq_cst ret void } -; CHECK-LABEL: atomic8_cas_acq_rel{{.*}}!pcsections !0 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 acq_rel monotonic, align 1, !pcsections !2 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 acq_rel acquire, align 1, !pcsections !2 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 acq_rel seq_cst, align 1, !pcsections !2 +; CHECK-LABEL: atomic8_cas_acq_rel{{.*}}!pcsections !2 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 acq_rel monotonic, align 1, !pcsections !4 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 acq_rel acquire, align 1, !pcsections !4 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 acq_rel seq_cst, align 1, !pcsections !4 define void @atomic8_cas_seq_cst(i8* %a) nounwind uwtable { entry: @@ -402,354 +402,354 @@ cmpxchg i8* %a, i8 0, i8 1 seq_cst seq_cst ret void } -; CHECK-LABEL: atomic8_cas_seq_cst{{.*}}!pcsections !0 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 seq_cst monotonic, align 1, !pcsections !2 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 seq_cst acquire, align 1, !pcsections !2 -; CHECK: cmpxchg i8* %a, i8 0, i8 1 seq_cst seq_cst, align 1, !pcsections !2 +; CHECK-LABEL: atomic8_cas_seq_cst{{.*}}!pcsections !2 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 seq_cst monotonic, align 1, !pcsections !4 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 seq_cst acquire, align 1, !pcsections !4 +; CHECK: cmpxchg i8* %a, i8 0, i8 1 seq_cst seq_cst, align 1, !pcsections !4 define i16 @atomic16_load_unordered(i16* %a) nounwind uwtable { entry: %0 = load atomic i16, i16* %a unordered, align 2 ret i16 %0 } -; CHECK-LABEL: atomic16_load_unordered{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_load_unordered{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i16 @atomic16_load_monotonic(i16* %a) nounwind uwtable { entry: %0 = load atomic i16, i16* %a monotonic, align 2 ret i16 %0 } -; CHECK-LABEL: atomic16_load_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_load_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i16 @atomic16_load_acquire(i16* %a) nounwind uwtable { entry: %0 = load atomic i16, i16* %a acquire, align 2 ret i16 %0 } -; CHECK-LABEL: atomic16_load_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_load_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i16 @atomic16_load_seq_cst(i16* %a) nounwind uwtable { entry: %0 = load atomic i16, i16* %a seq_cst, align 2 ret i16 %0 } -; CHECK-LABEL: atomic16_load_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_load_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_store_unordered(i16* %a) nounwind uwtable { entry: store atomic i16 0, i16* %a unordered, align 2 ret void } -; CHECK-LABEL: atomic16_store_unordered{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_store_unordered{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_store_monotonic(i16* %a) nounwind uwtable { entry: store atomic i16 0, i16* %a monotonic, align 2 ret void } -; CHECK-LABEL: atomic16_store_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_store_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_store_release(i16* %a) nounwind uwtable { entry: store atomic i16 0, i16* %a release, align 2 ret void } -; CHECK-LABEL: atomic16_store_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_store_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_store_seq_cst(i16* %a) nounwind uwtable { entry: store atomic i16 0, i16* %a seq_cst, align 2 ret void } -; CHECK-LABEL: atomic16_store_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_store_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_xchg_monotonic(i16* %a) nounwind uwtable { entry: atomicrmw xchg i16* %a, i16 0 monotonic ret void } -; CHECK-LABEL: atomic16_xchg_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_xchg_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_add_monotonic(i16* %a) nounwind uwtable { entry: atomicrmw add i16* %a, i16 0 monotonic ret void } -; CHECK-LABEL: atomic16_add_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_add_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_sub_monotonic(i16* %a) nounwind uwtable { entry: atomicrmw sub i16* %a, i16 0 monotonic ret void } -; CHECK-LABEL: atomic16_sub_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_sub_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_and_monotonic(i16* %a) nounwind uwtable { entry: atomicrmw and i16* %a, i16 0 monotonic ret void } -; CHECK-LABEL: atomic16_and_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_and_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_or_monotonic(i16* %a) nounwind uwtable { entry: atomicrmw or i16* %a, i16 0 monotonic ret void } -; CHECK-LABEL: atomic16_or_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_or_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_xor_monotonic(i16* %a) nounwind uwtable { entry: atomicrmw xor i16* %a, i16 0 monotonic ret void } -; CHECK-LABEL: atomic16_xor_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_xor_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_nand_monotonic(i16* %a) nounwind uwtable { entry: atomicrmw nand i16* %a, i16 0 monotonic ret void } -; CHECK-LABEL: atomic16_nand_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_nand_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_xchg_acquire(i16* %a) nounwind uwtable { entry: atomicrmw xchg i16* %a, i16 0 acquire ret void } -; CHECK-LABEL: atomic16_xchg_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_xchg_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_add_acquire(i16* %a) nounwind uwtable { entry: atomicrmw add i16* %a, i16 0 acquire ret void } -; CHECK-LABEL: atomic16_add_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_add_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_sub_acquire(i16* %a) nounwind uwtable { entry: atomicrmw sub i16* %a, i16 0 acquire ret void } -; CHECK-LABEL: atomic16_sub_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_sub_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_and_acquire(i16* %a) nounwind uwtable { entry: atomicrmw and i16* %a, i16 0 acquire ret void } -; CHECK-LABEL: atomic16_and_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_and_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_or_acquire(i16* %a) nounwind uwtable { entry: atomicrmw or i16* %a, i16 0 acquire ret void } -; CHECK-LABEL: atomic16_or_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_or_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_xor_acquire(i16* %a) nounwind uwtable { entry: atomicrmw xor i16* %a, i16 0 acquire ret void } -; CHECK-LABEL: atomic16_xor_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_xor_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_nand_acquire(i16* %a) nounwind uwtable { entry: atomicrmw nand i16* %a, i16 0 acquire ret void } -; CHECK-LABEL: atomic16_nand_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_nand_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_xchg_release(i16* %a) nounwind uwtable { entry: atomicrmw xchg i16* %a, i16 0 release ret void } -; CHECK-LABEL: atomic16_xchg_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_xchg_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_add_release(i16* %a) nounwind uwtable { entry: atomicrmw add i16* %a, i16 0 release ret void } -; CHECK-LABEL: atomic16_add_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_add_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_sub_release(i16* %a) nounwind uwtable { entry: atomicrmw sub i16* %a, i16 0 release ret void } -; CHECK-LABEL: atomic16_sub_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_sub_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_and_release(i16* %a) nounwind uwtable { entry: atomicrmw and i16* %a, i16 0 release ret void } -; CHECK-LABEL: atomic16_and_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_and_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_or_release(i16* %a) nounwind uwtable { entry: atomicrmw or i16* %a, i16 0 release ret void } -; CHECK-LABEL: atomic16_or_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_or_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_xor_release(i16* %a) nounwind uwtable { entry: atomicrmw xor i16* %a, i16 0 release ret void } -; CHECK-LABEL: atomic16_xor_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_xor_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_nand_release(i16* %a) nounwind uwtable { entry: atomicrmw nand i16* %a, i16 0 release ret void } -; CHECK-LABEL: atomic16_nand_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_nand_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_xchg_acq_rel(i16* %a) nounwind uwtable { entry: atomicrmw xchg i16* %a, i16 0 acq_rel ret void } -; CHECK-LABEL: atomic16_xchg_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_xchg_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_add_acq_rel(i16* %a) nounwind uwtable { entry: atomicrmw add i16* %a, i16 0 acq_rel ret void } -; CHECK-LABEL: atomic16_add_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_add_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_sub_acq_rel(i16* %a) nounwind uwtable { entry: atomicrmw sub i16* %a, i16 0 acq_rel ret void } -; CHECK-LABEL: atomic16_sub_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_sub_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_and_acq_rel(i16* %a) nounwind uwtable { entry: atomicrmw and i16* %a, i16 0 acq_rel ret void } -; CHECK-LABEL: atomic16_and_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_and_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_or_acq_rel(i16* %a) nounwind uwtable { entry: atomicrmw or i16* %a, i16 0 acq_rel ret void } -; CHECK-LABEL: atomic16_or_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_or_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_xor_acq_rel(i16* %a) nounwind uwtable { entry: atomicrmw xor i16* %a, i16 0 acq_rel ret void } -; CHECK-LABEL: atomic16_xor_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_xor_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_nand_acq_rel(i16* %a) nounwind uwtable { entry: atomicrmw nand i16* %a, i16 0 acq_rel ret void } -; CHECK-LABEL: atomic16_nand_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_nand_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_xchg_seq_cst(i16* %a) nounwind uwtable { entry: atomicrmw xchg i16* %a, i16 0 seq_cst ret void } -; CHECK-LABEL: atomic16_xchg_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_xchg_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_add_seq_cst(i16* %a) nounwind uwtable { entry: atomicrmw add i16* %a, i16 0 seq_cst ret void } -; CHECK-LABEL: atomic16_add_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_add_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_sub_seq_cst(i16* %a) nounwind uwtable { entry: atomicrmw sub i16* %a, i16 0 seq_cst ret void } -; CHECK-LABEL: atomic16_sub_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_sub_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_and_seq_cst(i16* %a) nounwind uwtable { entry: atomicrmw and i16* %a, i16 0 seq_cst ret void } -; CHECK-LABEL: atomic16_and_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_and_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_or_seq_cst(i16* %a) nounwind uwtable { entry: atomicrmw or i16* %a, i16 0 seq_cst ret void } -; CHECK-LABEL: atomic16_or_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_or_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_xor_seq_cst(i16* %a) nounwind uwtable { entry: atomicrmw xor i16* %a, i16 0 seq_cst ret void } -; CHECK-LABEL: atomic16_xor_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_xor_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_nand_seq_cst(i16* %a) nounwind uwtable { entry: atomicrmw nand i16* %a, i16 0 seq_cst ret void } -; CHECK-LABEL: atomic16_nand_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic16_nand_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic16_cas_monotonic(i16* %a) nounwind uwtable { entry: @@ -758,10 +758,10 @@ cmpxchg i16* %a, i16 0, i16 1 monotonic seq_cst ret void } -; CHECK-LABEL: atomic16_cas_monotonic{{.*}}!pcsections !0 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 monotonic monotonic, align 2, !pcsections !2 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 monotonic acquire, align 2, !pcsections !2 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 monotonic seq_cst, align 2, !pcsections !2 +; CHECK-LABEL: atomic16_cas_monotonic{{.*}}!pcsections !2 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 monotonic monotonic, align 2, !pcsections !4 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 monotonic acquire, align 2, !pcsections !4 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 monotonic seq_cst, align 2, !pcsections !4 define void @atomic16_cas_acquire(i16* %a) nounwind uwtable { entry: @@ -770,10 +770,10 @@ cmpxchg i16* %a, i16 0, i16 1 acquire seq_cst ret void } -; CHECK-LABEL: atomic16_cas_acquire{{.*}}!pcsections !0 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 acquire monotonic, align 2, !pcsections !2 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 acquire acquire, align 2, !pcsections !2 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 acquire seq_cst, align 2, !pcsections !2 +; CHECK-LABEL: atomic16_cas_acquire{{.*}}!pcsections !2 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 acquire monotonic, align 2, !pcsections !4 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 acquire acquire, align 2, !pcsections !4 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 acquire seq_cst, align 2, !pcsections !4 define void @atomic16_cas_release(i16* %a) nounwind uwtable { entry: @@ -782,10 +782,10 @@ cmpxchg i16* %a, i16 0, i16 1 release seq_cst ret void } -; CHECK-LABEL: atomic16_cas_release{{.*}}!pcsections !0 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 release monotonic, align 2, !pcsections !2 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 release acquire, align 2, !pcsections !2 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 release seq_cst, align 2, !pcsections !2 +; CHECK-LABEL: atomic16_cas_release{{.*}}!pcsections !2 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 release monotonic, align 2, !pcsections !4 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 release acquire, align 2, !pcsections !4 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 release seq_cst, align 2, !pcsections !4 define void @atomic16_cas_acq_rel(i16* %a) nounwind uwtable { entry: @@ -794,10 +794,10 @@ cmpxchg i16* %a, i16 0, i16 1 acq_rel seq_cst ret void } -; CHECK-LABEL: atomic16_cas_acq_rel{{.*}}!pcsections !0 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 acq_rel monotonic, align 2, !pcsections !2 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 acq_rel acquire, align 2, !pcsections !2 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 acq_rel seq_cst, align 2, !pcsections !2 +; CHECK-LABEL: atomic16_cas_acq_rel{{.*}}!pcsections !2 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 acq_rel monotonic, align 2, !pcsections !4 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 acq_rel acquire, align 2, !pcsections !4 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 acq_rel seq_cst, align 2, !pcsections !4 define void @atomic16_cas_seq_cst(i16* %a) nounwind uwtable { entry: @@ -806,354 +806,354 @@ cmpxchg i16* %a, i16 0, i16 1 seq_cst seq_cst ret void } -; CHECK-LABEL: atomic16_cas_seq_cst{{.*}}!pcsections !0 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 seq_cst monotonic, align 2, !pcsections !2 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 seq_cst acquire, align 2, !pcsections !2 -; CHECK: cmpxchg i16* %a, i16 0, i16 1 seq_cst seq_cst, align 2, !pcsections !2 +; CHECK-LABEL: atomic16_cas_seq_cst{{.*}}!pcsections !2 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 seq_cst monotonic, align 2, !pcsections !4 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 seq_cst acquire, align 2, !pcsections !4 +; CHECK: cmpxchg i16* %a, i16 0, i16 1 seq_cst seq_cst, align 2, !pcsections !4 define i32 @atomic32_load_unordered(i32* %a) nounwind uwtable { entry: %0 = load atomic i32, i32* %a unordered, align 4 ret i32 %0 } -; CHECK-LABEL: atomic32_load_unordered{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_load_unordered{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i32 @atomic32_load_monotonic(i32* %a) nounwind uwtable { entry: %0 = load atomic i32, i32* %a monotonic, align 4 ret i32 %0 } -; CHECK-LABEL: atomic32_load_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_load_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i32 @atomic32_load_acquire(i32* %a) nounwind uwtable { entry: %0 = load atomic i32, i32* %a acquire, align 4 ret i32 %0 } -; CHECK-LABEL: atomic32_load_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_load_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i32 @atomic32_load_seq_cst(i32* %a) nounwind uwtable { entry: %0 = load atomic i32, i32* %a seq_cst, align 4 ret i32 %0 } -; CHECK-LABEL: atomic32_load_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_load_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_store_unordered(i32* %a) nounwind uwtable { entry: store atomic i32 0, i32* %a unordered, align 4 ret void } -; CHECK-LABEL: atomic32_store_unordered{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_store_unordered{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_store_monotonic(i32* %a) nounwind uwtable { entry: store atomic i32 0, i32* %a monotonic, align 4 ret void } -; CHECK-LABEL: atomic32_store_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_store_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_store_release(i32* %a) nounwind uwtable { entry: store atomic i32 0, i32* %a release, align 4 ret void } -; CHECK-LABEL: atomic32_store_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_store_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_store_seq_cst(i32* %a) nounwind uwtable { entry: store atomic i32 0, i32* %a seq_cst, align 4 ret void } -; CHECK-LABEL: atomic32_store_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_store_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_xchg_monotonic(i32* %a) nounwind uwtable { entry: atomicrmw xchg i32* %a, i32 0 monotonic ret void } -; CHECK-LABEL: atomic32_xchg_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_xchg_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_add_monotonic(i32* %a) nounwind uwtable { entry: atomicrmw add i32* %a, i32 0 monotonic ret void } -; CHECK-LABEL: atomic32_add_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_add_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_sub_monotonic(i32* %a) nounwind uwtable { entry: atomicrmw sub i32* %a, i32 0 monotonic ret void } -; CHECK-LABEL: atomic32_sub_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_sub_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_and_monotonic(i32* %a) nounwind uwtable { entry: atomicrmw and i32* %a, i32 0 monotonic ret void } -; CHECK-LABEL: atomic32_and_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_and_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_or_monotonic(i32* %a) nounwind uwtable { entry: atomicrmw or i32* %a, i32 0 monotonic ret void } -; CHECK-LABEL: atomic32_or_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_or_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_xor_monotonic(i32* %a) nounwind uwtable { entry: atomicrmw xor i32* %a, i32 0 monotonic ret void } -; CHECK-LABEL: atomic32_xor_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_xor_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_nand_monotonic(i32* %a) nounwind uwtable { entry: atomicrmw nand i32* %a, i32 0 monotonic ret void } -; CHECK-LABEL: atomic32_nand_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_nand_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_xchg_acquire(i32* %a) nounwind uwtable { entry: atomicrmw xchg i32* %a, i32 0 acquire ret void } -; CHECK-LABEL: atomic32_xchg_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_xchg_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_add_acquire(i32* %a) nounwind uwtable { entry: atomicrmw add i32* %a, i32 0 acquire ret void } -; CHECK-LABEL: atomic32_add_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_add_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_sub_acquire(i32* %a) nounwind uwtable { entry: atomicrmw sub i32* %a, i32 0 acquire ret void } -; CHECK-LABEL: atomic32_sub_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_sub_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_and_acquire(i32* %a) nounwind uwtable { entry: atomicrmw and i32* %a, i32 0 acquire ret void } -; CHECK-LABEL: atomic32_and_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_and_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_or_acquire(i32* %a) nounwind uwtable { entry: atomicrmw or i32* %a, i32 0 acquire ret void } -; CHECK-LABEL: atomic32_or_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_or_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_xor_acquire(i32* %a) nounwind uwtable { entry: atomicrmw xor i32* %a, i32 0 acquire ret void } -; CHECK-LABEL: atomic32_xor_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_xor_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_nand_acquire(i32* %a) nounwind uwtable { entry: atomicrmw nand i32* %a, i32 0 acquire ret void } -; CHECK-LABEL: atomic32_nand_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_nand_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_xchg_release(i32* %a) nounwind uwtable { entry: atomicrmw xchg i32* %a, i32 0 release ret void } -; CHECK-LABEL: atomic32_xchg_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_xchg_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_add_release(i32* %a) nounwind uwtable { entry: atomicrmw add i32* %a, i32 0 release ret void } -; CHECK-LABEL: atomic32_add_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_add_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_sub_release(i32* %a) nounwind uwtable { entry: atomicrmw sub i32* %a, i32 0 release ret void } -; CHECK-LABEL: atomic32_sub_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_sub_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_and_release(i32* %a) nounwind uwtable { entry: atomicrmw and i32* %a, i32 0 release ret void } -; CHECK-LABEL: atomic32_and_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_and_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_or_release(i32* %a) nounwind uwtable { entry: atomicrmw or i32* %a, i32 0 release ret void } -; CHECK-LABEL: atomic32_or_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_or_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_xor_release(i32* %a) nounwind uwtable { entry: atomicrmw xor i32* %a, i32 0 release ret void } -; CHECK-LABEL: atomic32_xor_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_xor_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_nand_release(i32* %a) nounwind uwtable { entry: atomicrmw nand i32* %a, i32 0 release ret void } -; CHECK-LABEL: atomic32_nand_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_nand_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_xchg_acq_rel(i32* %a) nounwind uwtable { entry: atomicrmw xchg i32* %a, i32 0 acq_rel ret void } -; CHECK-LABEL: atomic32_xchg_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_xchg_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_add_acq_rel(i32* %a) nounwind uwtable { entry: atomicrmw add i32* %a, i32 0 acq_rel ret void } -; CHECK-LABEL: atomic32_add_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_add_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_sub_acq_rel(i32* %a) nounwind uwtable { entry: atomicrmw sub i32* %a, i32 0 acq_rel ret void } -; CHECK-LABEL: atomic32_sub_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_sub_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_and_acq_rel(i32* %a) nounwind uwtable { entry: atomicrmw and i32* %a, i32 0 acq_rel ret void } -; CHECK-LABEL: atomic32_and_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_and_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_or_acq_rel(i32* %a) nounwind uwtable { entry: atomicrmw or i32* %a, i32 0 acq_rel ret void } -; CHECK-LABEL: atomic32_or_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_or_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_xor_acq_rel(i32* %a) nounwind uwtable { entry: atomicrmw xor i32* %a, i32 0 acq_rel ret void } -; CHECK-LABEL: atomic32_xor_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_xor_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_nand_acq_rel(i32* %a) nounwind uwtable { entry: atomicrmw nand i32* %a, i32 0 acq_rel ret void } -; CHECK-LABEL: atomic32_nand_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_nand_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_xchg_seq_cst(i32* %a) nounwind uwtable { entry: atomicrmw xchg i32* %a, i32 0 seq_cst ret void } -; CHECK-LABEL: atomic32_xchg_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_xchg_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_add_seq_cst(i32* %a) nounwind uwtable { entry: atomicrmw add i32* %a, i32 0 seq_cst ret void } -; CHECK-LABEL: atomic32_add_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_add_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_sub_seq_cst(i32* %a) nounwind uwtable { entry: atomicrmw sub i32* %a, i32 0 seq_cst ret void } -; CHECK-LABEL: atomic32_sub_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_sub_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_and_seq_cst(i32* %a) nounwind uwtable { entry: atomicrmw and i32* %a, i32 0 seq_cst ret void } -; CHECK-LABEL: atomic32_and_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_and_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_or_seq_cst(i32* %a) nounwind uwtable { entry: atomicrmw or i32* %a, i32 0 seq_cst ret void } -; CHECK-LABEL: atomic32_or_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_or_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_xor_seq_cst(i32* %a) nounwind uwtable { entry: atomicrmw xor i32* %a, i32 0 seq_cst ret void } -; CHECK-LABEL: atomic32_xor_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_xor_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_nand_seq_cst(i32* %a) nounwind uwtable { entry: atomicrmw nand i32* %a, i32 0 seq_cst ret void } -; CHECK-LABEL: atomic32_nand_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic32_nand_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic32_cas_monotonic(i32* %a) nounwind uwtable { entry: @@ -1162,10 +1162,10 @@ cmpxchg i32* %a, i32 0, i32 1 monotonic seq_cst ret void } -; CHECK-LABEL: atomic32_cas_monotonic{{.*}}!pcsections !0 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 monotonic monotonic, align 4, !pcsections !2 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 monotonic acquire, align 4, !pcsections !2 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 monotonic seq_cst, align 4, !pcsections !2 +; CHECK-LABEL: atomic32_cas_monotonic{{.*}}!pcsections !2 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 monotonic monotonic, align 4, !pcsections !4 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 monotonic acquire, align 4, !pcsections !4 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 monotonic seq_cst, align 4, !pcsections !4 define void @atomic32_cas_acquire(i32* %a) nounwind uwtable { entry: @@ -1174,10 +1174,10 @@ cmpxchg i32* %a, i32 0, i32 1 acquire seq_cst ret void } -; CHECK-LABEL: atomic32_cas_acquire{{.*}}!pcsections !0 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 acquire monotonic, align 4, !pcsections !2 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 acquire acquire, align 4, !pcsections !2 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 acquire seq_cst, align 4, !pcsections !2 +; CHECK-LABEL: atomic32_cas_acquire{{.*}}!pcsections !2 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 acquire monotonic, align 4, !pcsections !4 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 acquire acquire, align 4, !pcsections !4 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 acquire seq_cst, align 4, !pcsections !4 define void @atomic32_cas_release(i32* %a) nounwind uwtable { entry: @@ -1186,10 +1186,10 @@ cmpxchg i32* %a, i32 0, i32 1 release seq_cst ret void } -; CHECK-LABEL: atomic32_cas_release{{.*}}!pcsections !0 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 release monotonic, align 4, !pcsections !2 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 release acquire, align 4, !pcsections !2 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 release seq_cst, align 4, !pcsections !2 +; CHECK-LABEL: atomic32_cas_release{{.*}}!pcsections !2 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 release monotonic, align 4, !pcsections !4 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 release acquire, align 4, !pcsections !4 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 release seq_cst, align 4, !pcsections !4 define void @atomic32_cas_acq_rel(i32* %a) nounwind uwtable { entry: @@ -1198,10 +1198,10 @@ cmpxchg i32* %a, i32 0, i32 1 acq_rel seq_cst ret void } -; CHECK-LABEL: atomic32_cas_acq_rel{{.*}}!pcsections !0 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 acq_rel monotonic, align 4, !pcsections !2 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 acq_rel acquire, align 4, !pcsections !2 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 acq_rel seq_cst, align 4, !pcsections !2 +; CHECK-LABEL: atomic32_cas_acq_rel{{.*}}!pcsections !2 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 acq_rel monotonic, align 4, !pcsections !4 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 acq_rel acquire, align 4, !pcsections !4 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 acq_rel seq_cst, align 4, !pcsections !4 define void @atomic32_cas_seq_cst(i32* %a) nounwind uwtable { entry: @@ -1210,370 +1210,370 @@ cmpxchg i32* %a, i32 0, i32 1 seq_cst seq_cst ret void } -; CHECK-LABEL: atomic32_cas_seq_cst{{.*}}!pcsections !0 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 seq_cst monotonic, align 4, !pcsections !2 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 seq_cst acquire, align 4, !pcsections !2 -; CHECK: cmpxchg i32* %a, i32 0, i32 1 seq_cst seq_cst, align 4, !pcsections !2 +; CHECK-LABEL: atomic32_cas_seq_cst{{.*}}!pcsections !2 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 seq_cst monotonic, align 4, !pcsections !4 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 seq_cst acquire, align 4, !pcsections !4 +; CHECK: cmpxchg i32* %a, i32 0, i32 1 seq_cst seq_cst, align 4, !pcsections !4 define i64 @atomic64_load_unordered(i64* %a) nounwind uwtable { entry: %0 = load atomic i64, i64* %a unordered, align 8 ret i64 %0 } -; CHECK-LABEL: atomic64_load_unordered{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_load_unordered{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i64 @atomic64_load_monotonic(i64* %a) nounwind uwtable { entry: %0 = load atomic i64, i64* %a monotonic, align 8 ret i64 %0 } -; CHECK-LABEL: atomic64_load_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_load_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i64 @atomic64_load_acquire(i64* %a) nounwind uwtable { entry: %0 = load atomic i64, i64* %a acquire, align 8 ret i64 %0 } -; CHECK-LABEL: atomic64_load_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_load_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i64 @atomic64_load_seq_cst(i64* %a) nounwind uwtable { entry: %0 = load atomic i64, i64* %a seq_cst, align 8 ret i64 %0 } -; CHECK-LABEL: atomic64_load_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_load_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i8* @atomic64_load_seq_cst_ptr_ty(i8** %a) nounwind uwtable { entry: %0 = load atomic i8*, i8** %a seq_cst, align 8 ret i8* %0 } -; CHECK-LABEL: atomic64_load_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_load_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_store_unordered(i64* %a) nounwind uwtable { entry: store atomic i64 0, i64* %a unordered, align 8 ret void } -; CHECK-LABEL: atomic64_store_unordered{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_store_unordered{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_store_monotonic(i64* %a) nounwind uwtable { entry: store atomic i64 0, i64* %a monotonic, align 8 ret void } -; CHECK-LABEL: atomic64_store_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_store_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_store_release(i64* %a) nounwind uwtable { entry: store atomic i64 0, i64* %a release, align 8 ret void } -; CHECK-LABEL: atomic64_store_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_store_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_store_seq_cst(i64* %a) nounwind uwtable { entry: store atomic i64 0, i64* %a seq_cst, align 8 ret void } -; CHECK-LABEL: atomic64_store_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_store_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_store_seq_cst_ptr_ty(i8** %a, i8* %v) nounwind uwtable { entry: store atomic i8* %v, i8** %a seq_cst, align 8 ret void } -; CHECK-LABEL: atomic64_store_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_store_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_xchg_monotonic(i64* %a) nounwind uwtable { entry: atomicrmw xchg i64* %a, i64 0 monotonic ret void } -; CHECK-LABEL: atomic64_xchg_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_xchg_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_add_monotonic(i64* %a) nounwind uwtable { entry: atomicrmw add i64* %a, i64 0 monotonic ret void } -; CHECK-LABEL: atomic64_add_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_add_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_sub_monotonic(i64* %a) nounwind uwtable { entry: atomicrmw sub i64* %a, i64 0 monotonic ret void } -; CHECK-LABEL: atomic64_sub_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_sub_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_and_monotonic(i64* %a) nounwind uwtable { entry: atomicrmw and i64* %a, i64 0 monotonic ret void } -; CHECK-LABEL: atomic64_and_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_and_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_or_monotonic(i64* %a) nounwind uwtable { entry: atomicrmw or i64* %a, i64 0 monotonic ret void } -; CHECK-LABEL: atomic64_or_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_or_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_xor_monotonic(i64* %a) nounwind uwtable { entry: atomicrmw xor i64* %a, i64 0 monotonic ret void } -; CHECK-LABEL: atomic64_xor_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_xor_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_nand_monotonic(i64* %a) nounwind uwtable { entry: atomicrmw nand i64* %a, i64 0 monotonic ret void } -; CHECK-LABEL: atomic64_nand_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_nand_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_xchg_acquire(i64* %a) nounwind uwtable { entry: atomicrmw xchg i64* %a, i64 0 acquire ret void } -; CHECK-LABEL: atomic64_xchg_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_xchg_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_add_acquire(i64* %a) nounwind uwtable { entry: atomicrmw add i64* %a, i64 0 acquire ret void } -; CHECK-LABEL: atomic64_add_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_add_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_sub_acquire(i64* %a) nounwind uwtable { entry: atomicrmw sub i64* %a, i64 0 acquire ret void } -; CHECK-LABEL: atomic64_sub_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_sub_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_and_acquire(i64* %a) nounwind uwtable { entry: atomicrmw and i64* %a, i64 0 acquire ret void } -; CHECK-LABEL: atomic64_and_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_and_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_or_acquire(i64* %a) nounwind uwtable { entry: atomicrmw or i64* %a, i64 0 acquire ret void } -; CHECK-LABEL: atomic64_or_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_or_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_xor_acquire(i64* %a) nounwind uwtable { entry: atomicrmw xor i64* %a, i64 0 acquire ret void } -; CHECK-LABEL: atomic64_xor_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_xor_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_nand_acquire(i64* %a) nounwind uwtable { entry: atomicrmw nand i64* %a, i64 0 acquire ret void } -; CHECK-LABEL: atomic64_nand_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_nand_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_xchg_release(i64* %a) nounwind uwtable { entry: atomicrmw xchg i64* %a, i64 0 release ret void } -; CHECK-LABEL: atomic64_xchg_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_xchg_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_add_release(i64* %a) nounwind uwtable { entry: atomicrmw add i64* %a, i64 0 release ret void } -; CHECK-LABEL: atomic64_add_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_add_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_sub_release(i64* %a) nounwind uwtable { entry: atomicrmw sub i64* %a, i64 0 release ret void } -; CHECK-LABEL: atomic64_sub_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_sub_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_and_release(i64* %a) nounwind uwtable { entry: atomicrmw and i64* %a, i64 0 release ret void } -; CHECK-LABEL: atomic64_and_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_and_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_or_release(i64* %a) nounwind uwtable { entry: atomicrmw or i64* %a, i64 0 release ret void } -; CHECK-LABEL: atomic64_or_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_or_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_xor_release(i64* %a) nounwind uwtable { entry: atomicrmw xor i64* %a, i64 0 release ret void } -; CHECK-LABEL: atomic64_xor_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_xor_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_nand_release(i64* %a) nounwind uwtable { entry: atomicrmw nand i64* %a, i64 0 release ret void } -; CHECK-LABEL: atomic64_nand_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_nand_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_xchg_acq_rel(i64* %a) nounwind uwtable { entry: atomicrmw xchg i64* %a, i64 0 acq_rel ret void } -; CHECK-LABEL: atomic64_xchg_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_xchg_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_add_acq_rel(i64* %a) nounwind uwtable { entry: atomicrmw add i64* %a, i64 0 acq_rel ret void } -; CHECK-LABEL: atomic64_add_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_add_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_sub_acq_rel(i64* %a) nounwind uwtable { entry: atomicrmw sub i64* %a, i64 0 acq_rel ret void } -; CHECK-LABEL: atomic64_sub_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_sub_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_and_acq_rel(i64* %a) nounwind uwtable { entry: atomicrmw and i64* %a, i64 0 acq_rel ret void } -; CHECK-LABEL: atomic64_and_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_and_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_or_acq_rel(i64* %a) nounwind uwtable { entry: atomicrmw or i64* %a, i64 0 acq_rel ret void } -; CHECK-LABEL: atomic64_or_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_or_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_xor_acq_rel(i64* %a) nounwind uwtable { entry: atomicrmw xor i64* %a, i64 0 acq_rel ret void } -; CHECK-LABEL: atomic64_xor_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_xor_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_nand_acq_rel(i64* %a) nounwind uwtable { entry: atomicrmw nand i64* %a, i64 0 acq_rel ret void } -; CHECK-LABEL: atomic64_nand_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_nand_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_xchg_seq_cst(i64* %a) nounwind uwtable { entry: atomicrmw xchg i64* %a, i64 0 seq_cst ret void } -; CHECK-LABEL: atomic64_xchg_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_xchg_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_add_seq_cst(i64* %a) nounwind uwtable { entry: atomicrmw add i64* %a, i64 0 seq_cst ret void } -; CHECK-LABEL: atomic64_add_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_add_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_sub_seq_cst(i64* %a) nounwind uwtable { entry: atomicrmw sub i64* %a, i64 0 seq_cst ret void } -; CHECK-LABEL: atomic64_sub_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_sub_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_and_seq_cst(i64* %a) nounwind uwtable { entry: atomicrmw and i64* %a, i64 0 seq_cst ret void } -; CHECK-LABEL: atomic64_and_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_and_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_or_seq_cst(i64* %a) nounwind uwtable { entry: atomicrmw or i64* %a, i64 0 seq_cst ret void } -; CHECK-LABEL: atomic64_or_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_or_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_xor_seq_cst(i64* %a) nounwind uwtable { entry: atomicrmw xor i64* %a, i64 0 seq_cst ret void } -; CHECK-LABEL: atomic64_xor_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_xor_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_nand_seq_cst(i64* %a) nounwind uwtable { entry: atomicrmw nand i64* %a, i64 0 seq_cst ret void } -; CHECK-LABEL: atomic64_nand_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_nand_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic64_cas_monotonic(i64* %a) nounwind uwtable { entry: @@ -1582,10 +1582,10 @@ cmpxchg i64* %a, i64 0, i64 1 monotonic seq_cst ret void } -; CHECK-LABEL: atomic64_cas_monotonic{{.*}}!pcsections !0 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 monotonic monotonic, align 8, !pcsections !2 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 monotonic acquire, align 8, !pcsections !2 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 monotonic seq_cst, align 8, !pcsections !2 +; CHECK-LABEL: atomic64_cas_monotonic{{.*}}!pcsections !2 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 monotonic monotonic, align 8, !pcsections !4 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 monotonic acquire, align 8, !pcsections !4 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 monotonic seq_cst, align 8, !pcsections !4 define void @atomic64_cas_acquire(i64* %a) nounwind uwtable { entry: @@ -1594,10 +1594,10 @@ cmpxchg i64* %a, i64 0, i64 1 acquire seq_cst ret void } -; CHECK-LABEL: atomic64_cas_acquire{{.*}}!pcsections !0 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 acquire monotonic, align 8, !pcsections !2 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 acquire acquire, align 8, !pcsections !2 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 acquire seq_cst, align 8, !pcsections !2 +; CHECK-LABEL: atomic64_cas_acquire{{.*}}!pcsections !2 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 acquire monotonic, align 8, !pcsections !4 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 acquire acquire, align 8, !pcsections !4 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 acquire seq_cst, align 8, !pcsections !4 define void @atomic64_cas_release(i64* %a) nounwind uwtable { entry: @@ -1606,10 +1606,10 @@ cmpxchg i64* %a, i64 0, i64 1 release seq_cst ret void } -; CHECK-LABEL: atomic64_cas_release{{.*}}!pcsections !0 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 release monotonic, align 8, !pcsections !2 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 release acquire, align 8, !pcsections !2 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 release seq_cst, align 8, !pcsections !2 +; CHECK-LABEL: atomic64_cas_release{{.*}}!pcsections !2 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 release monotonic, align 8, !pcsections !4 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 release acquire, align 8, !pcsections !4 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 release seq_cst, align 8, !pcsections !4 define void @atomic64_cas_acq_rel(i64* %a) nounwind uwtable { entry: @@ -1618,10 +1618,10 @@ cmpxchg i64* %a, i64 0, i64 1 acq_rel seq_cst ret void } -; CHECK-LABEL: atomic64_cas_acq_rel{{.*}}!pcsections !0 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 acq_rel monotonic, align 8, !pcsections !2 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 acq_rel acquire, align 8, !pcsections !2 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 acq_rel seq_cst, align 8, !pcsections !2 +; CHECK-LABEL: atomic64_cas_acq_rel{{.*}}!pcsections !2 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 acq_rel monotonic, align 8, !pcsections !4 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 acq_rel acquire, align 8, !pcsections !4 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 acq_rel seq_cst, align 8, !pcsections !4 define void @atomic64_cas_seq_cst(i64* %a) nounwind uwtable { entry: @@ -1630,402 +1630,402 @@ cmpxchg i64* %a, i64 0, i64 1 seq_cst seq_cst ret void } -; CHECK-LABEL: atomic64_cas_seq_cst{{.*}}!pcsections !0 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 seq_cst monotonic, align 8, !pcsections !2 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 seq_cst acquire, align 8, !pcsections !2 -; CHECK: cmpxchg i64* %a, i64 0, i64 1 seq_cst seq_cst, align 8, !pcsections !2 +; CHECK-LABEL: atomic64_cas_seq_cst{{.*}}!pcsections !2 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 seq_cst monotonic, align 8, !pcsections !4 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 seq_cst acquire, align 8, !pcsections !4 +; CHECK: cmpxchg i64* %a, i64 0, i64 1 seq_cst seq_cst, align 8, !pcsections !4 define void @atomic64_cas_seq_cst_ptr_ty(i8** %a, i8* %v1, i8* %v2) nounwind uwtable { entry: cmpxchg i8** %a, i8* %v1, i8* %v2 seq_cst seq_cst ret void } -; CHECK-LABEL: atomic64_cas_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic64_cas_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i128 @atomic128_load_unordered(i128* %a) nounwind uwtable { entry: %0 = load atomic i128, i128* %a unordered, align 16 ret i128 %0 } -; CHECK-LABEL: atomic128_load_unordered{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_load_unordered{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i128 @atomic128_load_monotonic(i128* %a) nounwind uwtable { entry: %0 = load atomic i128, i128* %a monotonic, align 16 ret i128 %0 } -; CHECK-LABEL: atomic128_load_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_load_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i128 @atomic128_load_acquire(i128* %a) nounwind uwtable { entry: %0 = load atomic i128, i128* %a acquire, align 16 ret i128 %0 } -; CHECK-LABEL: atomic128_load_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_load_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define i128 @atomic128_load_seq_cst(i128* %a) nounwind uwtable { entry: %0 = load atomic i128, i128* %a seq_cst, align 16 ret i128 %0 } -; CHECK-LABEL: atomic128_load_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_load_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_store_unordered(i128* %a) nounwind uwtable { entry: store atomic i128 0, i128* %a unordered, align 16 ret void } -; CHECK-LABEL: atomic128_store_unordered{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_store_unordered{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_store_monotonic(i128* %a) nounwind uwtable { entry: store atomic i128 0, i128* %a monotonic, align 16 ret void } -; CHECK-LABEL: atomic128_store_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_store_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_store_release(i128* %a) nounwind uwtable { entry: store atomic i128 0, i128* %a release, align 16 ret void } -; CHECK-LABEL: atomic128_store_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_store_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_store_seq_cst(i128* %a) nounwind uwtable { entry: store atomic i128 0, i128* %a seq_cst, align 16 ret void } -; CHECK-LABEL: atomic128_store_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_store_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_xchg_monotonic(i128* %a) nounwind uwtable { entry: atomicrmw xchg i128* %a, i128 0 monotonic ret void } -; CHECK-LABEL: atomic128_xchg_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_xchg_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_add_monotonic(i128* %a) nounwind uwtable { entry: atomicrmw add i128* %a, i128 0 monotonic ret void } -; CHECK-LABEL: atomic128_add_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_add_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_sub_monotonic(i128* %a) nounwind uwtable { entry: atomicrmw sub i128* %a, i128 0 monotonic ret void } -; CHECK-LABEL: atomic128_sub_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_sub_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_and_monotonic(i128* %a) nounwind uwtable { entry: atomicrmw and i128* %a, i128 0 monotonic ret void } -; CHECK-LABEL: atomic128_and_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_and_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_or_monotonic(i128* %a) nounwind uwtable { entry: atomicrmw or i128* %a, i128 0 monotonic ret void } -; CHECK-LABEL: atomic128_or_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_or_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_xor_monotonic(i128* %a) nounwind uwtable { entry: atomicrmw xor i128* %a, i128 0 monotonic ret void } -; CHECK-LABEL: atomic128_xor_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_xor_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_nand_monotonic(i128* %a) nounwind uwtable { entry: atomicrmw nand i128* %a, i128 0 monotonic ret void } -; CHECK-LABEL: atomic128_nand_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_nand_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_xchg_acquire(i128* %a) nounwind uwtable { entry: atomicrmw xchg i128* %a, i128 0 acquire ret void } -; CHECK-LABEL: atomic128_xchg_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_xchg_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_add_acquire(i128* %a) nounwind uwtable { entry: atomicrmw add i128* %a, i128 0 acquire ret void } -; CHECK-LABEL: atomic128_add_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_add_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_sub_acquire(i128* %a) nounwind uwtable { entry: atomicrmw sub i128* %a, i128 0 acquire ret void } -; CHECK-LABEL: atomic128_sub_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_sub_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_and_acquire(i128* %a) nounwind uwtable { entry: atomicrmw and i128* %a, i128 0 acquire ret void } -; CHECK-LABEL: atomic128_and_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_and_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_or_acquire(i128* %a) nounwind uwtable { entry: atomicrmw or i128* %a, i128 0 acquire ret void } -; CHECK-LABEL: atomic128_or_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_or_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_xor_acquire(i128* %a) nounwind uwtable { entry: atomicrmw xor i128* %a, i128 0 acquire ret void } -; CHECK-LABEL: atomic128_xor_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_xor_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_nand_acquire(i128* %a) nounwind uwtable { entry: atomicrmw nand i128* %a, i128 0 acquire ret void } -; CHECK-LABEL: atomic128_nand_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_nand_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_xchg_release(i128* %a) nounwind uwtable { entry: atomicrmw xchg i128* %a, i128 0 release ret void } -; CHECK-LABEL: atomic128_xchg_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_xchg_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_add_release(i128* %a) nounwind uwtable { entry: atomicrmw add i128* %a, i128 0 release ret void } -; CHECK-LABEL: atomic128_add_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_add_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_sub_release(i128* %a) nounwind uwtable { entry: atomicrmw sub i128* %a, i128 0 release ret void } -; CHECK-LABEL: atomic128_sub_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_sub_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_and_release(i128* %a) nounwind uwtable { entry: atomicrmw and i128* %a, i128 0 release ret void } -; CHECK-LABEL: atomic128_and_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_and_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_or_release(i128* %a) nounwind uwtable { entry: atomicrmw or i128* %a, i128 0 release ret void } -; CHECK-LABEL: atomic128_or_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_or_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_xor_release(i128* %a) nounwind uwtable { entry: atomicrmw xor i128* %a, i128 0 release ret void } -; CHECK-LABEL: atomic128_xor_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_xor_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_nand_release(i128* %a) nounwind uwtable { entry: atomicrmw nand i128* %a, i128 0 release ret void } -; CHECK-LABEL: atomic128_nand_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_nand_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_xchg_acq_rel(i128* %a) nounwind uwtable { entry: atomicrmw xchg i128* %a, i128 0 acq_rel ret void } -; CHECK-LABEL: atomic128_xchg_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_xchg_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_add_acq_rel(i128* %a) nounwind uwtable { entry: atomicrmw add i128* %a, i128 0 acq_rel ret void } -; CHECK-LABEL: atomic128_add_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_add_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_sub_acq_rel(i128* %a) nounwind uwtable { entry: atomicrmw sub i128* %a, i128 0 acq_rel ret void } -; CHECK-LABEL: atomic128_sub_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_sub_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_and_acq_rel(i128* %a) nounwind uwtable { entry: atomicrmw and i128* %a, i128 0 acq_rel ret void } -; CHECK-LABEL: atomic128_and_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_and_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_or_acq_rel(i128* %a) nounwind uwtable { entry: atomicrmw or i128* %a, i128 0 acq_rel ret void } -; CHECK-LABEL: atomic128_or_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_or_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_xor_acq_rel(i128* %a) nounwind uwtable { entry: atomicrmw xor i128* %a, i128 0 acq_rel ret void } -; CHECK-LABEL: atomic128_xor_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_xor_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_nand_acq_rel(i128* %a) nounwind uwtable { entry: atomicrmw nand i128* %a, i128 0 acq_rel ret void } -; CHECK-LABEL: atomic128_nand_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_nand_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_xchg_seq_cst(i128* %a) nounwind uwtable { entry: atomicrmw xchg i128* %a, i128 0 seq_cst ret void } -; CHECK-LABEL: atomic128_xchg_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_xchg_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_add_seq_cst(i128* %a) nounwind uwtable { entry: atomicrmw add i128* %a, i128 0 seq_cst ret void } -; CHECK-LABEL: atomic128_add_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_add_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_sub_seq_cst(i128* %a) nounwind uwtable { entry: atomicrmw sub i128* %a, i128 0 seq_cst ret void } -; CHECK-LABEL: atomic128_sub_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_sub_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_and_seq_cst(i128* %a) nounwind uwtable { entry: atomicrmw and i128* %a, i128 0 seq_cst ret void } -; CHECK-LABEL: atomic128_and_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_and_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_or_seq_cst(i128* %a) nounwind uwtable { entry: atomicrmw or i128* %a, i128 0 seq_cst ret void } -; CHECK-LABEL: atomic128_or_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_or_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_xor_seq_cst(i128* %a) nounwind uwtable { entry: atomicrmw xor i128* %a, i128 0 seq_cst ret void } -; CHECK-LABEL: atomic128_xor_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_xor_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_nand_seq_cst(i128* %a) nounwind uwtable { entry: atomicrmw nand i128* %a, i128 0 seq_cst ret void } -; CHECK-LABEL: atomic128_nand_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_nand_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_cas_monotonic(i128* %a) nounwind uwtable { entry: cmpxchg i128* %a, i128 0, i128 1 monotonic monotonic ret void } -; CHECK-LABEL: atomic128_cas_monotonic{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_cas_monotonic{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_cas_acquire(i128* %a) nounwind uwtable { entry: cmpxchg i128* %a, i128 0, i128 1 acquire acquire ret void } -; CHECK-LABEL: atomic128_cas_acquire{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_cas_acquire{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_cas_release(i128* %a) nounwind uwtable { entry: cmpxchg i128* %a, i128 0, i128 1 release monotonic ret void } -; CHECK-LABEL: atomic128_cas_release{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_cas_release{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_cas_acq_rel(i128* %a) nounwind uwtable { entry: cmpxchg i128* %a, i128 0, i128 1 acq_rel acquire ret void } -; CHECK-LABEL: atomic128_cas_acq_rel{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_cas_acq_rel{{.*}}!pcsections !2 +; CHECK: !pcsections !4 define void @atomic128_cas_seq_cst(i128* %a) nounwind uwtable { entry: cmpxchg i128* %a, i128 0, i128 1 seq_cst seq_cst ret void } -; CHECK-LABEL: atomic128_cas_seq_cst{{.*}}!pcsections !0 -; CHECK: !pcsections !2 +; CHECK-LABEL: atomic128_cas_seq_cst{{.*}}!pcsections !2 +; CHECK: !pcsections !4 ; Check that callbacks are emitted. @@ -2041,6 +2041,6 @@ ; CHECK-LABEL: __sanitizer_metadata_covered.module_dtor ; CHECK: call void @__sanitizer_metadata_covered_del(i32 1, i8** @__start_sanmd_covered, i8** @__stop_sanmd_covered) -; CHECK: !0 = !{!"sanmd_covered", !1} -; CHECK: !1 = !{i32 1} -; CHECK: !2 = !{!"sanmd_atomics"} +; CHECK: !2 = !{!"sanmd_covered", !3} +; CHECK: !3 = !{i32 1} +; CHECK: !4 = !{!"sanmd_atomics"}