blob: 8aa5f4da5ded4ce9cdceb12b36170a28b3123e2e [file] [log] [blame]
Chris Lattnerd065c812006-05-01 05:56: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'
Chris Lattner353f1de2005-08-30 21:02:51 +00003
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}