-; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin8.6.1 -relocation-model=static | grep 'movl _last' | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=x86 -mtriple=i686-apple-darwin8 -relocation-model=static | \
+; RUN: grep {movl _last} | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=x86 -mtriple=i686-apple-darwin8 -relocation-model=static | \
+; RUN: grep {cmpl.*_last} | wc -l | grep 1
%block = external global ubyte* ; <ubyte**> [#uses=1]
%last = external global int ; <int*> [#uses=3]