Test case for X86 inline asm constraint 'I'
[oota-llvm.git] / test / CodeGen / X86 / 2005-08-30-RegAllocAliasProblem.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | not grep 'test.*AL' || \
2 ; RUN: llvm-upgrade < %s | llvm-as | 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 }