Chris Lattner | 353f1de | 2005-08-30 21:02:51 +0000 | [diff] [blame^] | 1 | ; 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 | |
| 14 | int %pypy_simple5(bool %b_4787) { |
| 15 | %retval = select bool %b_4787, int 12, int 13 ; <int> [#uses=1] |
| 16 | ret int %retval |
| 17 | } |