Use the llvm-upgrade program to upgrade llvm assembly.
llvm-svn: 32115
diff --git a/llvm/test/Regression/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll b/llvm/test/Regression/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll
index 0a176be..a7b0df1 100644
--- a/llvm/test/Regression/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -instcombine -constprop -dce | llvm-dis | not grep add
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine -constprop -dce | llvm-dis | not grep add
int %test(int %A) {
%X = add int %A, 1
diff --git a/llvm/test/Regression/Transforms/Reassociate/2002-05-15-MissedTree.ll b/llvm/test/Regression/Transforms/Reassociate/2002-05-15-MissedTree.ll
index fce2cde..176948a 100644
--- a/llvm/test/Regression/Transforms/Reassociate/2002-05-15-MissedTree.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/2002-05-15-MissedTree.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -instcombine -constprop -die | llvm-dis | not grep 5
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine -constprop -die | llvm-dis | not grep 5
int %test(int %A, int %B) {
%W = add int %B, -5
diff --git a/llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate.ll b/llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate.ll
index f3e6bfa..be204e9 100644
--- a/llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate.ll
@@ -1,6 +1,6 @@
; With sub reassociation, constant folding can eliminate all of the constants.
;
-; RUN: llvm-as < %s | opt -reassociate -constprop -instcombine -dce | llvm-dis | not grep add
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -constprop -instcombine -dce | llvm-dis | not grep add
int %test(int %A, int %B) {
%W = add int 5, %B
diff --git a/llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate2.ll b/llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate2.ll
index 85e746b..c46cc2e 100644
--- a/llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate2.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate2.ll
@@ -1,6 +1,6 @@
; With sub reassociation, constant folding can eliminate the two 12 constants.
;
-; RUN: llvm-as < %s | opt -reassociate -constprop -dce | llvm-dis | not grep 12
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -constprop -dce | llvm-dis | not grep 12
int "test"(int %A, int %B, int %C, int %D) {
%M = add int %A, 12
diff --git a/llvm/test/Regression/Transforms/Reassociate/2002-07-09-DominanceProblem.ll b/llvm/test/Regression/Transforms/Reassociate/2002-07-09-DominanceProblem.ll
index 3829148..6a0ef532 100644
--- a/llvm/test/Regression/Transforms/Reassociate/2002-07-09-DominanceProblem.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/2002-07-09-DominanceProblem.ll
@@ -1,6 +1,6 @@
; The reassociate pass is not preserving dominance properties correctly
;
-; RUN: llvm-as < %s | opt -reassociate
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate
int %compute_dist(int %i, int %j) {
%reg119 = sub int %j, %i
diff --git a/llvm/test/Regression/Transforms/Reassociate/2003-08-12-InfiniteLoop.ll b/llvm/test/Regression/Transforms/Reassociate/2003-08-12-InfiniteLoop.ll
index 59e482d..a84297b 100644
--- a/llvm/test/Regression/Transforms/Reassociate/2003-08-12-InfiniteLoop.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/2003-08-12-InfiniteLoop.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -disable-output
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -disable-output
implementation ; Functions:
diff --git a/llvm/test/Regression/Transforms/Reassociate/2005-08-24-Crash.ll b/llvm/test/Regression/Transforms/Reassociate/2005-08-24-Crash.ll
index c1d5259..7e8e5d5 100644
--- a/llvm/test/Regression/Transforms/Reassociate/2005-08-24-Crash.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/2005-08-24-Crash.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -disable-output
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -disable-output
void %test(int %a, int %b, int %c, int %d) {
%tmp.2 = xor int %a, %b ; <int> [#uses=1]
diff --git a/llvm/test/Regression/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll b/llvm/test/Regression/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll
index 958f979..e51c8cc 100644
--- a/llvm/test/Regression/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -instcombine | llvm-dis | grep 'ret int 0'
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep 'ret int 0'
int %f(int %a0, int %a1, int %a2, int %a3, int %a4) {
%tmp.2 = add int %a4, %a3 ; <int> [#uses=1]
diff --git a/llvm/test/Regression/Transforms/Reassociate/2006-04-27-ReassociateVector.ll b/llvm/test/Regression/Transforms/Reassociate/2006-04-27-ReassociateVector.ll
index 30c8426..2a5b5cd 100644
--- a/llvm/test/Regression/Transforms/Reassociate/2006-04-27-ReassociateVector.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/2006-04-27-ReassociateVector.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -disable-output
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -disable-output
void %foo() {
%tmp162 = sub <4 x float> zeroinitializer, zeroinitializer
diff --git a/llvm/test/Regression/Transforms/Reassociate/basictest.ll b/llvm/test/Regression/Transforms/Reassociate/basictest.ll
index 6372d98..a7ff84a 100644
--- a/llvm/test/Regression/Transforms/Reassociate/basictest.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/basictest.ll
@@ -1,6 +1,6 @@
; With reassociation, constant folding can eliminate the 12 and -12 constants.
;
-; RUN: llvm-as < %s | opt -reassociate -constprop -instcombine -die | llvm-dis | not grep add
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -constprop -instcombine -die | llvm-dis | not grep add
int %test(int %arg) {
%tmp1 = sub int -12, %arg
diff --git a/llvm/test/Regression/Transforms/Reassociate/basictest2.ll b/llvm/test/Regression/Transforms/Reassociate/basictest2.ll
index c7a3687..7efa3cc 100644
--- a/llvm/test/Regression/Transforms/Reassociate/basictest2.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/basictest2.ll
@@ -1,6 +1,6 @@
; With reassociation, constant folding can eliminate the +/- 30 constants.
;
-; RUN: llvm-as < %s | opt -reassociate -constprop -instcombine -die | llvm-dis | not grep 30
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -constprop -instcombine -die | llvm-dis | not grep 30
int "test"(int %reg109, int %reg1111) {
%reg115 = add int %reg109, -30 ; <int> [#uses=1]
diff --git a/llvm/test/Regression/Transforms/Reassociate/basictest3.ll b/llvm/test/Regression/Transforms/Reassociate/basictest3.ll
index c82b017..a3da5a0 100644
--- a/llvm/test/Regression/Transforms/Reassociate/basictest3.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/basictest3.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -gcse | llvm-dis | grep add | wc -l | grep 6
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -gcse | llvm-dis | grep add | wc -l | grep 6
; Each of these functions should turn into two adds each.
%e = external global int
diff --git a/llvm/test/Regression/Transforms/Reassociate/basictest4.ll b/llvm/test/Regression/Transforms/Reassociate/basictest4.ll
index 4f75e16..dcf7a55 100644
--- a/llvm/test/Regression/Transforms/Reassociate/basictest4.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/basictest4.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -gcse -instcombine | llvm-dis | not grep add
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -gcse -instcombine | llvm-dis | not grep add
%a = weak global int 0
%b = weak global int 0
diff --git a/llvm/test/Regression/Transforms/Reassociate/inverses.ll b/llvm/test/Regression/Transforms/Reassociate/inverses.ll
index 0ce7046..eff3e6b 100644
--- a/llvm/test/Regression/Transforms/Reassociate/inverses.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/inverses.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -dce | llvm-dis | not grep '\(and\|sub\)'
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -dce | llvm-dis | not grep '\(and\|sub\)'
int %test1(int %a, int %b) {
%tmp.2 = and int %b, %a
diff --git a/llvm/test/Regression/Transforms/Reassociate/looptest.ll b/llvm/test/Regression/Transforms/Reassociate/looptest.ll
index aa7000f..97127bb 100644
--- a/llvm/test/Regression/Transforms/Reassociate/looptest.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/looptest.ll
@@ -12,7 +12,7 @@
; In this case, we want to reassociate the specified expr so that i+j can be
; hoisted out of the inner most loop.
;
-; RUN: llvm-as < %s | opt -reassociate | llvm-dis | grep 115 | not grep 117
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate | llvm-dis | grep 115 | not grep 117
%.LC0 = internal global [4 x sbyte] c"%d\0A\00" ; <[4 x sbyte]*> [#uses=1]
diff --git a/llvm/test/Regression/Transforms/Reassociate/mul-factor3.ll b/llvm/test/Regression/Transforms/Reassociate/mul-factor3.ll
index 773569e..5e06fbc 100644
--- a/llvm/test/Regression/Transforms/Reassociate/mul-factor3.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/mul-factor3.ll
@@ -1,7 +1,7 @@
; This should be one add and two multiplies.
-; RUN: llvm-as < %s | opt -reassociate -instcombine | llvm-dis | grep mul | wc -l | grep 2 &&
-; RUN: llvm-as < %s | opt -reassociate -instcombine | llvm-dis | grep add | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep mul | wc -l | grep 2 &&
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep add | wc -l | grep 1
int %test(int %A, int %B, int %C) {
%aa = mul int %A, %A
diff --git a/llvm/test/Regression/Transforms/Reassociate/mul-neg-add.ll b/llvm/test/Regression/Transforms/Reassociate/mul-neg-add.ll
index 79eeb19..d7c39a5 100644
--- a/llvm/test/Regression/Transforms/Reassociate/mul-neg-add.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/mul-neg-add.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -instcombine | llvm-dis | not grep 'sub int 0'
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | not grep 'sub int 0'
int %test(int %X, int %Y, int %Z) {
%A = sub int 0, %X
diff --git a/llvm/test/Regression/Transforms/Reassociate/mulfactor.ll b/llvm/test/Regression/Transforms/Reassociate/mulfactor.ll
index 76db242..bb7efc3 100644
--- a/llvm/test/Regression/Transforms/Reassociate/mulfactor.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/mulfactor.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -instcombine | llvm-dis | grep mul | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep mul | wc -l | grep 2
; This should have exactly 2 multiplies when we're done.
diff --git a/llvm/test/Regression/Transforms/Reassociate/mulfactor2.ll b/llvm/test/Regression/Transforms/Reassociate/mulfactor2.ll
index 20a28a4..062e3af 100644
--- a/llvm/test/Regression/Transforms/Reassociate/mulfactor2.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/mulfactor2.ll
@@ -1,7 +1,7 @@
; This should turn into one multiply and one add.
-; RUN: llvm-as < %s | opt -instcombine -reassociate -instcombine | llvm-dis | grep mul | wc -l | grep 1 &&
-; RUN: llvm-as < %s | opt -instcombine -reassociate -instcombine | llvm-dis | grep add | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -reassociate -instcombine | llvm-dis | grep mul | wc -l | grep 1 &&
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -reassociate -instcombine | llvm-dis | grep add | wc -l | grep 1
int %main(int %t) {
%tmp.3 = mul int %t, 12 ; <int> [#uses=1]
%tmp.4 = add int %tmp.3, 5 ; <int> [#uses=1]
diff --git a/llvm/test/Regression/Transforms/Reassociate/negation.ll b/llvm/test/Regression/Transforms/Reassociate/negation.ll
index ba7fe6f..56e087a 100644
--- a/llvm/test/Regression/Transforms/Reassociate/negation.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/negation.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -instcombine | llvm-dis | not grep sub
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | not grep sub
; Test that we can turn things like X*-(Y*Z) -> X*-1*Y*Z.
diff --git a/llvm/test/Regression/Transforms/Reassociate/otherops.ll b/llvm/test/Regression/Transforms/Reassociate/otherops.ll
index 0a205e3..9e99d2c 100644
--- a/llvm/test/Regression/Transforms/Reassociate/otherops.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/otherops.ll
@@ -1,6 +1,6 @@
; Reassociation should apply to Add, Mul, And, Or, & Xor
;
-; RUN: llvm-as < %s | opt -reassociate -constprop -instcombine -die | llvm-dis | not grep 12
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -constprop -instcombine -die | llvm-dis | not grep 12
int "test_mul"(int %arg) {
%tmp1 = mul int 12, %arg
diff --git a/llvm/test/Regression/Transforms/Reassociate/shift-factor.ll b/llvm/test/Regression/Transforms/Reassociate/shift-factor.ll
index b0499f5..51513c2 100644
--- a/llvm/test/Regression/Transforms/Reassociate/shift-factor.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/shift-factor.ll
@@ -1,6 +1,6 @@
; There should be exactly one shift and one add left.
-; RUN: llvm-as < %s | opt -reassociate -instcombine | llvm-dis | grep shl | wc -l | grep 1 &&
-; RUN: llvm-as < %s | opt -reassociate -instcombine | llvm-dis | grep add | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep shl | wc -l | grep 1 &&
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep add | wc -l | grep 1
int %test(int %X, int %Y) {
%tmp.2 = shl int %X, ubyte 1 ; <int> [#uses=1]
diff --git a/llvm/test/Regression/Transforms/Reassociate/shifttest.ll b/llvm/test/Regression/Transforms/Reassociate/shifttest.ll
index 6ca6622..6a65aaf 100644
--- a/llvm/test/Regression/Transforms/Reassociate/shifttest.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/shifttest.ll
@@ -1,6 +1,6 @@
; With shl->mul reassociation, we can see that this is (shl A, 9) * A
;
-; RUN: llvm-as < %s | opt -reassociate -instcombine | llvm-dis | grep 'shl .*, ubyte 9'
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep 'shl .*, ubyte 9'
int %test(int %A, int %B) {
%X = shl int %A, ubyte 5
diff --git a/llvm/test/Regression/Transforms/Reassociate/subtest.ll b/llvm/test/Regression/Transforms/Reassociate/subtest.ll
index fe2d46f..097c355 100644
--- a/llvm/test/Regression/Transforms/Reassociate/subtest.ll
+++ b/llvm/test/Regression/Transforms/Reassociate/subtest.ll
@@ -1,6 +1,6 @@
; With sub reassociation, constant folding can eliminate the 12 and -12 constants.
;
-; RUN: llvm-as < %s | opt -reassociate -constprop -instcombine -die | llvm-dis | not grep 12
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -constprop -instcombine -die | llvm-dis | not grep 12
int "test"(int %A, int %B) {
%X = add int -12, %A