1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 15:32:52 +01:00
llvm-mirror/test/Regression/CodeGen/X86/2005-08-30-RegAllocAliasProblem.ll
Chris Lattner 281f3131ba new testcase corresponding to PR621
llvm-svn: 23157
2005-08-30 21:02:51 +00:00

18 lines
504 B
LLVM

; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | not grep 'test.*%AL' || \
; RUN: llvm-as < %s | 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
}