mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-03 12:37:56 +00:00
new testcase corresponding to PR621
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23157 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dd43c866c8
commit
353f1dea50
17
test/CodeGen/X86/2005-08-30-RegAllocAliasProblem.ll
Normal file
17
test/CodeGen/X86/2005-08-30-RegAllocAliasProblem.ll
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
; 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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user