llvm-6502/test/CodeGen/X86/select-aggregate.ll
Dan Gohman 192db0027c Change this to the correct PR number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91148 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-11 20:09:21 +00:00

16 lines
308 B
LLVM

; RUN: llc < %s -march=x86-64 | FileCheck %s
; PR5757
; 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
}