blob: 822e5946d342fa1cb5ddbb495afcf5543e794236 [file] [log] [blame]
Dan Gohmana4f9cc42009-12-11 19:50:50 +00001; RUN: llc < %s -march=x86-64 | FileCheck %s
Dan Gohman192db002009-12-11 20:09:21 +00002; PR5757
Dan Gohmana4f9cc42009-12-11 19:50:50 +00003
4; CHECK: cmovne %rdi, %rsi
5; CHECK: movl (%rsi), %eax
6
7%0 = type { i64, i32 }
8
9define i32 @foo(%0* %p, %0* %q, i1 %r) nounwind {
10 %t0 = load %0* %p
11 %t1 = load %0* %q
12 %t4 = select i1 %r, %0 %t0, %0 %t1
13 %t5 = extractvalue %0 %t4, 1
14 ret i32 %t5
15}