summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2005-08-30-RegAllocAliasProblem.ll
blob: eef09d8d73b18b772e74a4e219e7fda3b15901d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | not grep 'test.*AL' || \
; RUN: llvm-upgrade < %s | llvm-as | 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
}