diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-08-30 21:02:51 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-08-30 21:02:51 +0000 |
| commit | 38b3704d28204b16e0749026ba70850a8cf4839c (patch) | |
| tree | 692a0d7c93693a1c90d7c5bf8d8323fe8a6a31dc /llvm/test | |
| parent | 2188b4363fd72d8232075d5be1d5aa6ec8e27c48 (diff) | |
| download | bcm5719-llvm-38b3704d28204b16e0749026ba70850a8cf4839c.tar.gz bcm5719-llvm-38b3704d28204b16e0749026ba70850a8cf4839c.zip | |
new testcase corresponding to PR621
llvm-svn: 23157
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Regression/CodeGen/X86/2005-08-30-RegAllocAliasProblem.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/X86/2005-08-30-RegAllocAliasProblem.ll b/llvm/test/Regression/CodeGen/X86/2005-08-30-RegAllocAliasProblem.ll new file mode 100644 index 00000000000..509c07b74ae --- /dev/null +++ b/llvm/test/Regression/CodeGen/X86/2005-08-30-RegAllocAliasProblem.ll @@ -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 +} |

