[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/2007-01-15-LoadSelectCycle.ll
Chris Lattner
sabre at nondot.org
Mon Jan 15 21:59:06 PST 2007
Changes in directory llvm/test/Regression/CodeGen/Generic:
2007-01-15-LoadSelectCycle.ll added (r1.1)
---
Log message:
new testcase for PR1114: http://llvm.org/PR1114
---
Diffs of the changes: (+12 -0)
2007-01-15-LoadSelectCycle.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Regression/CodeGen/Generic/2007-01-15-LoadSelectCycle.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Generic/2007-01-15-LoadSelectCycle.ll:1.1
*** /dev/null Mon Jan 15 23:59:00 2007
--- llvm/test/Regression/CodeGen/Generic/2007-01-15-LoadSelectCycle.ll Mon Jan 15 23:58:50 2007
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | llc
+ ; PR1114
+
+ declare i1 %foo()
+
+ define i32 %test(i32* %A, i32* %B) {
+ %a = load i32* %A
+ %b = load i32* %B
+ %cond = call i1 %foo()
+ %c = select i1 %cond, i32 %a, i32 %b
+ ret i32 %c
+ }
More information about the llvm-commits
mailing list