blob: 509c07b74ae67c88df801fc091c0e17f0384c5a0 [file] [log] [blame]
Chris Lattner353f1de2005-08-30 21:02:51 +00001; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | not grep 'test.*%AL' || \
2; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | not grep 'cmove.*%EAX'
3
4; This testcase was compiling to:
5;
6; _pypy_simple5:
7; movl $13, %ecx
8; movl $12, %eax
9; movb 4(%esp), %al
10; testb %al, %al ;; clobber EAX!
11; cmove %ecx, %eax
12; ret
13
14int %pypy_simple5(bool %b_4787) {
15 %retval = select bool %b_4787, int 12, int 13 ; <int> [#uses=1]
16 ret int %retval
17}