[llvm-commits] CVS: llvm/test/Regression/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll

Reid Spencer reid at x10sys.com
Mon Jan 8 22:25:31 PST 2007



Changes in directory llvm/test/Regression/CodeGen/CBackend:

2007-01-08-ParamAttr-ICmp.ll added (r1.1)
---
Log message:

Test case for PR1099: http://llvm.org/PR1099 .


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

 2007-01-08-ParamAttr-ICmp.ll |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+)


Index: llvm/test/Regression/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll
diff -c /dev/null llvm/test/Regression/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll:1.1
*** /dev/null	Tue Jan  9 00:25:25 2007
--- llvm/test/Regression/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll	Tue Jan  9 00:25:15 2007
***************
*** 0 ****
--- 1,31 ----
+ ; RUN: llvm-as < %s | llc -march=c | \
+ ; RUN:   grep 'return ((((ltmp_2_2 == (signed int)ltmp_1_2)) ?  (1) : (0)))'
+ ; For PR1099
+ ; XFAIL: *
+ 
+ target datalayout = "e-p:32:32"
+ target endian = little
+ target pointersize = 32
+ target triple = "i686-apple-darwin8"
+         %struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
+ 
+ implementation   ; Functions:
+ 
+ define bool %prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) {
+ newFuncRoot:
+         br label %entry.ce
+ 
+ cond_next.exitStub:             ; preds = %entry.ce
+         ret bool true
+ 
+ entry.return_crit_edge.exitStub:                ; preds = %entry.ce
+         ret bool false
+ 
+ entry.ce:               ; preds = %newFuncRoot
+         %tmp = getelementptr %struct.Connector* %a, i32 0, i32 0                ; <i16*> [#uses=1]
+         %tmp = load i16* %tmp           ; <i16> [#uses=1]
+         %tmp = icmp eq i16 %tmp, %b.0.0.val             ; <bool> [#uses=1]
+         br bool %tmp, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub
+ }
+ 
+ 






More information about the llvm-commits mailing list