new testcase corresponding to PR621

llvm-svn: 23157
This commit is contained in:
Chris Lattner 2005-08-30 21:02:51 +00:00
parent 2188b4363f
commit 38b3704d28
1 changed files with 17 additions and 0 deletions

View File

@ -0,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
}