1*9880d681SAndroid Build Coastguard Worker; RUN: llc %s -o - -verify-machineinstrs | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" 4*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-unknown-unknown" 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker; Test that we can generate an fcmove, and also that it passes verification. 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: cmove_f 9*9880d681SAndroid Build Coastguard Worker; CHECK: fcmove %st({{[0-7]}}), %st(0) 10*9880d681SAndroid Build Coastguard Workerdefine x86_fp80 @cmove_f(x86_fp80 %a, x86_fp80 %b, i32 %c) { 11*9880d681SAndroid Build Coastguard Worker %test = icmp eq i32 %c, 0 12*9880d681SAndroid Build Coastguard Worker %add = fadd x86_fp80 %a, %b 13*9880d681SAndroid Build Coastguard Worker %ret = select i1 %test, x86_fp80 %add, x86_fp80 %b 14*9880d681SAndroid Build Coastguard Worker ret x86_fp80 %ret 15*9880d681SAndroid Build Coastguard Worker}