diff options
| author | Dan Gohman <gohman@apple.com> | 2009-12-11 19:50:50 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-12-11 19:50:50 +0000 |
| commit | 6d306bb32b9eae05e51d8fcaa254949db715fafc (patch) | |
| tree | 7daf2ef1cec748a64a0c8b70149cc844c14c7e5e /llvm/test | |
| parent | fc51282cbe1bfe03994f44b718339597c9ce4de7 (diff) | |
| download | bcm5719-llvm-6d306bb32b9eae05e51d8fcaa254949db715fafc.tar.gz bcm5719-llvm-6d306bb32b9eae05e51d8fcaa254949db715fafc.zip | |
Fix the result type of SELECT nodes lowered from Select instructions with
aggregate return values. This fixes PR5754.
llvm-svn: 91145
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/X86/select-aggregate.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/select-aggregate.ll b/llvm/test/CodeGen/X86/select-aggregate.ll new file mode 100644 index 00000000000..fba6a59c2d5 --- /dev/null +++ b/llvm/test/CodeGen/X86/select-aggregate.ll @@ -0,0 +1,15 @@ +; RUN: llc < %s -march=x86-64 | FileCheck %s +; PR5754 + +; CHECK: cmovne %rdi, %rsi +; CHECK: movl (%rsi), %eax + +%0 = type { i64, i32 } + +define i32 @foo(%0* %p, %0* %q, i1 %r) nounwind { + %t0 = load %0* %p + %t1 = load %0* %q + %t4 = select i1 %r, %0 %t0, %0 %t1 + %t5 = extractvalue %0 %t4, 1 + ret i32 %t5 +} |

