1 ; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=x86_64-apple-darwin &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=x86_64-apple-darwin | grep GOTPCREL | wc -l | grep 4 &&
3 ; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=x86_64-apple-darwin | grep rip | wc -l | grep 6 &&
4 ; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=x86_64-apple-darwin | grep movq | wc -l | grep 6 &&
5 ; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=x86_64-apple-darwin | grep leaq | wc -l | grep 1 &&
6 ; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=x86_64-apple-darwin -relocation-model=static | grep rip | wc -l | grep 4 &&
7 ; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=x86_64-apple-darwin -relocation-model=static | grep movl | wc -l | grep 2 &&
8 ; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=x86_64-apple-darwin -relocation-model=static | grep movq | wc -l | grep 2
10 %ptr = external global int*
11 %src = external global [0 x int]
12 %dst = external global [0 x int]
13 %lptr = internal global int* null
14 %ldst = internal global [500 x int] zeroinitializer, align 32
15 %lsrc = internal global [500 x int] zeroinitializer, align 32
16 %bsrc = internal global [500000 x int] zeroinitializer, align 32
17 %bdst = internal global [500000 x int] zeroinitializer, align 32
20 %tmp = load int* getelementptr ([0 x int]* %src, int 0, int 0)
21 store int %tmp, int* getelementptr ([0 x int]* %dst, int 0, int 0)
26 store int* getelementptr ([0 x int]* %dst, int 0, int 0), int** %ptr
31 store int* getelementptr ([500 x int]* %ldst, int 0, int 0), int** %lptr