[llvm-commits] CVS: llvm/test/Assembler/2007-02-07-BasicBlockRename.ll 2007-02-07-UpgradeGVarConflict.ll

Reid Spencer reid at x10sys.com
Thu Feb 8 01:10:39 PST 2007



Changes in directory llvm/test/Assembler:

2007-02-07-BasicBlockRename.ll added (r1.1)
2007-02-07-UpgradeGVarConflict.ll added (r1.1)
---
Log message:

New test cases for PR1187: http://llvm.org/PR1187 


---
Diffs of the changes:  (+33 -0)

 2007-02-07-BasicBlockRename.ll    |   14 ++++++++++++++
 2007-02-07-UpgradeGVarConflict.ll |   19 +++++++++++++++++++
 2 files changed, 33 insertions(+)


Index: llvm/test/Assembler/2007-02-07-BasicBlockRename.ll
diff -c /dev/null llvm/test/Assembler/2007-02-07-BasicBlockRename.ll:1.1
*** /dev/null	Thu Feb  8 03:10:32 2007
--- llvm/test/Assembler/2007-02-07-BasicBlockRename.ll	Thu Feb  8 03:10:22 2007
***************
*** 0 ****
--- 1,14 ----
+ ; PR1187
+ ; RUN: llvm-upgrade < %s | llvm-as > /dev/null
+ 
+ implementation
+ 
+ int @main(int %argc, sbyte** %argv) {
+ entry:
+ 	%exit = alloca int, align 4		; <i32*> [#uses=11]
+         store int 0, int* %exit
+ 	br label %exit
+ 
+ exit:
+ 	ret int 0
+ }


Index: llvm/test/Assembler/2007-02-07-UpgradeGVarConflict.ll
diff -c /dev/null llvm/test/Assembler/2007-02-07-UpgradeGVarConflict.ll:1.1
*** /dev/null	Thu Feb  8 03:10:39 2007
--- llvm/test/Assembler/2007-02-07-UpgradeGVarConflict.ll	Thu Feb  8 03:10:22 2007
***************
*** 0 ****
--- 1,19 ----
+ ; For PR1187
+ ; RUN: llvm-upgrade < %s > /dev/null
+ 
+ %struct.isc_hash_t = type { uint, sbyte*, int, uint, uint, 
+                             [4 x ubyte], ulong, ushort* }
+ %hash = internal global %struct.isc_hash_t* null
+ 
+ implementation
+ 
+ void %somefunc() {
+   %key_addr = alloca sbyte*
+   %tmp21 = load sbyte** %key_addr
+   %tmp22 = call fastcc uint %hash(sbyte* %tmp21, uint 0)
+   ret void
+ }
+ 
+ internal fastcc uint %hash(sbyte* %key, uint %case_sensitive) {
+   ret uint 0
+ }






More information about the llvm-commits mailing list