; This testcase ensures that redundant loads are preserved when they are not
; allowed to be eliminated.
-; RUN: as < %s | opt -load-vn -gcse | dis | grep sub
+; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse | llvm-dis | grep sub
;
int %test1(int* %P) {
%A = load int* %P