[llvm-commits] [llvm] r47227 - in /llvm/trunk/test/Assembler: 2007-02-07-UpgradeCSRETCC.ll ConstantExprFoldCast.llx

Tanya Lattner tonic at nondot.org
Sat Feb 16 15:55:46 PST 2008


Author: tbrethou
Date: Sat Feb 16 17:55:46 2008
New Revision: 47227

URL: http://llvm.org/viewvc/llvm-project?rev=47227&view=rev
Log:
Remove llvm-upgrade and update tests.

Removed:
    llvm/trunk/test/Assembler/2007-02-07-UpgradeCSRETCC.ll
Modified:
    llvm/trunk/test/Assembler/ConstantExprFoldCast.llx

Removed: llvm/trunk/test/Assembler/2007-02-07-UpgradeCSRETCC.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/2007-02-07-UpgradeCSRETCC.ll?rev=47226&view=auto

==============================================================================
--- llvm/trunk/test/Assembler/2007-02-07-UpgradeCSRETCC.ll (original)
+++ llvm/trunk/test/Assembler/2007-02-07-UpgradeCSRETCC.ll (removed)
@@ -1,23 +0,0 @@
-; RUN: llvm-upgrade < %s > /dev/null
-; PR1187
-
-%mystruct = type { int, double }
-%glob = global %mystruct { int 3, double 42.0 }
-%fptr = external global void (i32)*
-
-implementation
-
-csretcc void %nada(%mystruct * %ptr, int %val) {
-  ret void
-}
-
-int %main(int %argc, ubyte** %argv) {
-  %astr = alloca %mystruct
-  call void %nada(%mystruct* %astr, i32 7)
-  %fptr = alloca void (%mystruct*, i32)*
-  %f = load void (%mystruct*, i32)**%fptr
-  call csretcc void %f(%mystruct* %astr, i32 7)
-  store void (%mystruct* , i32)* %nada, void (%mystruct*, i32)** %fptr
-
-  ret int 0
-}

Modified: llvm/trunk/test/Assembler/ConstantExprFoldCast.llx
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/ConstantExprFoldCast.llx?rev=47227&r1=47226&r2=47227&view=diff

==============================================================================
--- llvm/trunk/test/Assembler/ConstantExprFoldCast.llx (original)
+++ llvm/trunk/test/Assembler/ConstantExprFoldCast.llx Sat Feb 16 17:55:46 2008
@@ -1,14 +1,14 @@
 ; This test checks to make sure that constant exprs fold in some simple situations
 
-; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep cast
+; RUN: llvm-as < %s | llvm-dis | not grep cast
 
-%A = global int* cast (sbyte* null to int*)  ; Cast null -> fold
-%B = global int** cast (int** %A to int**)   ; Cast to same type -> fold
-%C = global int cast (long 42 to int)        ; Integral casts
-%D = global int* cast(float* cast (int* %C to float*) to int*)  ; cast of cast ptr->ptr
-%E = global int cast(float* cast (sbyte 5 to float*) to int)  ; int -> ptr -> int
+ at A = global i32* bitcast (i8* null to i32*)  ; Cast null -> fold
+ at B = global i32** bitcast (i32** @A to i32**)   ; Cast to same type -> fold
+ at C = global i32 trunc (i64 42 to i32)        ; Integral casts
+ at D = global i32* bitcast(float*  bitcast (i32* @C to float*) to i32*)  ; cast of cast ptr->ptr
+ at E = global i32 ptrtoint(float* inttoptr (i8 5 to float*) to i32)  ; i32 -> ptr -> i32
 
 ; Test folding of binary instrs
-%F = global int* cast(int add (int 5, int -5) to int*)
-%G = global int* cast(int sub (int 5, int 5) to int*)
+ at F = global i32* inttoptr (i32 add (i32 5, i32 -5) to i32*)
+ at G = global i32* inttoptr (i32 sub (i32 5, i32 5) to i32*)
 





More information about the llvm-commits mailing list