[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/2005-08-30-RegAllocAliasProblem.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 30 14:03:03 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/X86:
2005-08-30-RegAllocAliasProblem.ll added (r1.1)
---
Log message:
new testcase corresponding to PR621: http://llvm.cs.uiuc.edu/PR621
---
Diffs of the changes: (+17 -0)
2005-08-30-RegAllocAliasProblem.ll | 17 +++++++++++++++++
1 files changed, 17 insertions(+)
Index: llvm/test/Regression/CodeGen/X86/2005-08-30-RegAllocAliasProblem.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/2005-08-30-RegAllocAliasProblem.ll:1.1
*** /dev/null Tue Aug 30 16:03:01 2005
--- llvm/test/Regression/CodeGen/X86/2005-08-30-RegAllocAliasProblem.ll Tue Aug 30 16:02:51 2005
***************
*** 0 ****
--- 1,17 ----
+ ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | not grep 'test.*%AL' || \
+ ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | not grep 'cmove.*%EAX'
+
+ ; This testcase was compiling to:
+ ;
+ ; _pypy_simple5:
+ ; movl $13, %ecx
+ ; movl $12, %eax
+ ; movb 4(%esp), %al
+ ; testb %al, %al ;; clobber EAX!
+ ; cmove %ecx, %eax
+ ; ret
+
+ int %pypy_simple5(bool %b_4787) {
+ %retval = select bool %b_4787, int 12, int 13 ; <int> [#uses=1]
+ ret int %retval
+ }
More information about the llvm-commits
mailing list