blob: 44cafe22af14491d96bf15f875be09aa5be36ce5 [file] [log] [blame]
Dan Gohman2c4c4dc2009-12-11 19:50:50 +00001; RUN: llc < %s -march=x86-64 | FileCheck %s
Dan Gohman432c8af2009-12-11 20:09:21 +00002; PR5757
Dan Gohman2c4c4dc2009-12-11 19:50:50 +00003
Sean Callanan2c48df22009-12-18 00:01:26 +00004; CHECK: cmovneq %rdi, %rsi
Dan Gohman2c4c4dc2009-12-11 19:50:50 +00005; 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}