Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git] / llvm / test / CodeGen / ARM / available_externally.ll
blob230653b7b17d5ecc2d7bf775b3d5f0b24ec1796d
1 ; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=pic | FileCheck %s
2 ; rdar://9027648
4 @A = available_externally hidden constant i32 1
5 @B = external hidden constant i32
7 define i32 @t1() {
8   %tmp = load i32, ptr @A
9   store i32 %tmp, ptr @B
10   ret i32 %tmp
13 ; CHECK:      L_A$non_lazy_ptr:
14 ; CHECK-NEXT: .indirect_symbol _A
15 ; CHECK-NEXT: .long 0
16 ; CHECK:      L_B$non_lazy_ptr:
17 ; CHECK-NEXT: .indirect_symbol _B
18 ; CHECK-NEXT: .long 0