[llvm-commits] CVS: llvm/test/Transforms/ConstProp/2002-05-03-NotOperator.ll 2005-01-28-SetCCGEP.ll 2006-11-30-vector-cast.ll 2006-12-01-TruncBoolBug.ll 2006-12-01-bool-casts.ll 2007-02-23-sdiv.ll calls.ll dg.exp float-to-ptr-cast.ll

Reid Spencer reid at x10sys.com
Sat Apr 14 16:05:16 PDT 2007



Changes in directory llvm/test/Transforms/ConstProp:

2002-05-03-NotOperator.ll updated: 1.5 -> 1.6
2005-01-28-SetCCGEP.ll updated: 1.2 -> 1.3
2006-11-30-vector-cast.ll updated: 1.4 -> 1.5
2006-12-01-TruncBoolBug.ll updated: 1.3 -> 1.4
2006-12-01-bool-casts.ll updated: 1.3 -> 1.4
2007-02-23-sdiv.ll updated: 1.1 -> 1.2
calls.ll updated: 1.4 -> 1.5
dg.exp updated: 1.4 -> 1.5
float-to-ptr-cast.ll updated: 1.3 -> 1.4
---
Log message:

For PR1913: http://llvm.org/PR1913 :
Convert to new test system. This exposes test/Transforms/ConstProp/calls.ll


---
Diffs of the changes:  (+31 -22)

 2002-05-03-NotOperator.ll  |    3 ++-
 2005-01-28-SetCCGEP.ll     |    3 ++-
 2006-11-30-vector-cast.ll  |    6 ++++--
 2006-12-01-TruncBoolBug.ll |    3 ++-
 2006-12-01-bool-casts.ll   |    6 ++++--
 2007-02-23-sdiv.ll         |    2 +-
 calls.ll                   |   22 +++++++++++-----------
 dg.exp                     |    4 ++--
 float-to-ptr-cast.ll       |    4 +++-
 9 files changed, 31 insertions(+), 22 deletions(-)


Index: llvm/test/Transforms/ConstProp/2002-05-03-NotOperator.ll
diff -u llvm/test/Transforms/ConstProp/2002-05-03-NotOperator.ll:1.5 llvm/test/Transforms/ConstProp/2002-05-03-NotOperator.ll:1.6
--- llvm/test/Transforms/ConstProp/2002-05-03-NotOperator.ll:1.5	Fri Dec  1 22:23:09 2006
+++ llvm/test/Transforms/ConstProp/2002-05-03-NotOperator.ll	Sat Apr 14 18:04:54 2007
@@ -4,7 +4,8 @@
 
 ; Fix #2: The unary not instruction now no longer exists. Change to xor.
 
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | not grep 'int 0'
+; RUN: llvm-upgrade < $test | llvm-as | opt -constprop | llvm-dis | \
+; RUN:   not grep {int 0}
 
 int "test1"() {
 	%R = xor int 123, -1


Index: llvm/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll
diff -u llvm/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll:1.2 llvm/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll:1.3
--- llvm/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll:1.2	Fri Dec  1 22:23:09 2006
+++ llvm/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll	Sat Apr 14 18:04:54 2007
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | not grep 'ret bool false'
+; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
+; RUN:    not grep {ret bool false}
 
 %b = external global [2 x {  }] 
 


Index: llvm/test/Transforms/ConstProp/2006-11-30-vector-cast.ll
diff -u llvm/test/Transforms/ConstProp/2006-11-30-vector-cast.ll:1.4 llvm/test/Transforms/ConstProp/2006-11-30-vector-cast.ll:1.5
--- llvm/test/Transforms/ConstProp/2006-11-30-vector-cast.ll:1.4	Sun Dec 31 00:01:59 2006
+++ llvm/test/Transforms/ConstProp/2006-11-30-vector-cast.ll	Sat Apr 14 18:04:54 2007
@@ -1,5 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'i32 -1' &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | not grep zeroinitializer
+; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
+; RUN:   grep {i32 -1}
+; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
+; RUN:   not grep zeroinitializer
 
 < 4 x uint> %test() {
   %tmp40 = bitcast <2 x long> bitcast (<4 x int> < int 0, int 0, int -1, int 0 > to <2 x long>) to <4 x uint>


Index: llvm/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll
diff -u llvm/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll:1.3 llvm/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll:1.4
--- llvm/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll:1.3	Fri Jan 12 23:06:52 2007
+++ llvm/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll	Sat Apr 14 18:04:54 2007
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep 'ret i1 false'
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
+; RUN:   grep {ret i1 false}
 bool %test() {
   %X = trunc uint 320 to bool
   ret bool %X


Index: llvm/test/Transforms/ConstProp/2006-12-01-bool-casts.ll
diff -u llvm/test/Transforms/ConstProp/2006-12-01-bool-casts.ll:1.3 llvm/test/Transforms/ConstProp/2006-12-01-bool-casts.ll:1.4
--- llvm/test/Transforms/ConstProp/2006-12-01-bool-casts.ll:1.3	Sun Dec 31 00:01:59 2006
+++ llvm/test/Transforms/ConstProp/2006-12-01-bool-casts.ll	Sat Apr 14 18:04:54 2007
@@ -1,5 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'ret i32 -1' &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'ret i32 1'
+; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
+; RUN:    grep {ret i32 -1}
+; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
+; RUN:    grep {ret i32 1}
 
 int %test1() {
   %A = sext bool true to int


Index: llvm/test/Transforms/ConstProp/2007-02-23-sdiv.ll
diff -u llvm/test/Transforms/ConstProp/2007-02-23-sdiv.ll:1.1 llvm/test/Transforms/ConstProp/2007-02-23-sdiv.ll:1.2
--- llvm/test/Transforms/ConstProp/2007-02-23-sdiv.ll:1.1	Fri Feb 23 19:16:39 2007
+++ llvm/test/Transforms/ConstProp/2007-02-23-sdiv.ll	Sat Apr 14 18:04:54 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llvm-dis | grep 'global i32 0'
+; RUN: llvm-as < %s | llvm-dis | grep {global i32 0}
 ; PR1215
 
 @G = global i32 sdiv (i32 0, i32 -1)


Index: llvm/test/Transforms/ConstProp/calls.ll
diff -u llvm/test/Transforms/ConstProp/calls.ll:1.4 llvm/test/Transforms/ConstProp/calls.ll:1.5
--- llvm/test/Transforms/ConstProp/calls.ll:1.4	Fri Dec  1 22:23:09 2006
+++ llvm/test/Transforms/ConstProp/calls.ll	Sat Apr 14 18:04:54 2007
@@ -1,25 +1,25 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | not grep call
 
-declare double %cos(double)
-declare double %sin(double)
-declare double %tan(double)
-declare double %sqrt(double)
-declare bool %llvm.isunordered(double, double)
+declare double %cos.f64(double)
+declare double %sin.f64(double)
+declare double %tan.f64(double)
+declare double %sqrt.f64(double)
+declare bool %llvm.isunordered.f64(double, double)
 
 double %T() {
-	%A = call double %cos(double 0.0)
-	%B = call double %sin(double 0.0)
+	%A = call double %cos.f64(double 0.0)
+	%B = call double %sin.f64(double 0.0)
 	%a = add double %A, %B
-	%C = call double %tan(double 0.0)
+	%C = call double %tan.f64(double 0.0)
 	%b = add double %a, %C
-	%D = call double %sqrt(double 4.0)
+	%D = call double %sqrt.f64(double 4.0)
 	%c = add double %b, %D
 	ret double %c
 }
 
 bool %TNAN() {
-	%A = call bool %llvm.isunordered(double 0x7FF8000000000000, double 1.0)  ;; it's a nan!
-	%B = call bool %llvm.isunordered(double 123.0, double 1.0)
+	%A = call bool %llvm.isunordered.f64(double 0x7FF8000000000000, double 1.0)  ;; it's a nan!
+	%B = call bool %llvm.isunordered.f64(double 123.0, double 1.0)
 	%C = or bool %A, %B
 	ret bool %C
 }


Index: llvm/test/Transforms/ConstProp/dg.exp
diff -u llvm/test/Transforms/ConstProp/dg.exp:1.4 llvm/test/Transforms/ConstProp/dg.exp:1.5
--- llvm/test/Transforms/ConstProp/dg.exp:1.4	Wed Apr 11 14:56:58 2007
+++ llvm/test/Transforms/ConstProp/dg.exp	Sat Apr 14 18:04:54 2007
@@ -1,3 +1,3 @@
-load_lib llvm-dg.exp
+load_lib llvm.exp
 
-llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]


Index: llvm/test/Transforms/ConstProp/float-to-ptr-cast.ll
diff -u llvm/test/Transforms/ConstProp/float-to-ptr-cast.ll:1.3 llvm/test/Transforms/ConstProp/float-to-ptr-cast.ll:1.4
--- llvm/test/Transforms/ConstProp/float-to-ptr-cast.ll:1.3	Sun Dec 31 00:01:59 2006
+++ llvm/test/Transforms/ConstProp/float-to-ptr-cast.ll	Sat Apr 14 18:04:54 2007
@@ -1,4 +1,6 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep -F 'ret i32* null' | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
+; RUN:    grep -F {ret i32* null} | wc -l | grep 2
+
 int* %test1() {
   %X = cast float 0.0 to int*
   ret int* %X






More information about the llvm-commits mailing list