; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips2 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=M2 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=CMOV32R1 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32r2 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=CMOV32R2 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32r3 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=CMOV32R2 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32r5 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=CMOV32R2 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32r6 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=32R6 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips3 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=M3 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips4 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=CMOV64 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips64 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=CMOV64 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips64r2 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=CMOV64 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips64r3 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=CMOV64 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips64r5 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=CMOV64 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips64r6 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=64R6 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32r3 \ ; RUN: -asm-show-inst -mattr=+micromips -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=MM32R3 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32r6 -mattr=+micromips -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefix=MM32R6 define double @tst_select_i1_double(i1 signext %s, double %x, double %y) { ; M2-LABEL: tst_select_i1_double: ; M2: # %bb.0: # %entry ; M2-NEXT: andi $1, $4, 1 ; M2-NEXT: bnez $1, $BB0_2 ; M2-NEXT: nop ; M2-NEXT: # %bb.1: # %entry ; M2-NEXT: ldc1 $f0, 16($sp) ; M2-NEXT: jr $ra ; M2-NEXT: nop ; M2-NEXT: $BB0_2: ; M2-NEXT: mtc1 $7, $f0 ; M2-NEXT: jr $ra ; M2-NEXT: mtc1 $6, $f1 ; ; CMOV32R1-LABEL: tst_select_i1_double: ; CMOV32R1: # %bb.0: # %entry ; CMOV32R1-NEXT: mtc1 $7, $f2 ; CMOV32R1-NEXT: mtc1 $6, $f3 ; CMOV32R1-NEXT: andi $1, $4, 1 ; CMOV32R1-NEXT: ldc1 $f0, 16($sp) ; CMOV32R1-NEXT: jr $ra ; CMOV32R1-NEXT: movn.d $f0, $f2, $1 ; ; CMOV32R2-LABEL: tst_select_i1_double: ; CMOV32R2: # %bb.0: # %entry ; CMOV32R2-NEXT: mtc1 $7, $f2 ; CMOV32R2-NEXT: mthc1 $6, $f2 ; CMOV32R2-NEXT: andi $1, $4, 1 ; CMOV32R2-NEXT: ldc1 $f0, 16($sp) ; CMOV32R2-NEXT: jr $ra ; CMOV32R2-NEXT: movn.d $f0, $f2, $1 ; ; 32R6-LABEL: tst_select_i1_double: ; 32R6: # %bb.0: # %entry ; 32R6-NEXT: mtc1 $7, $f1 ; 32R6-NEXT: mthc1 $6, $f1 ; 32R6-NEXT: mtc1 $4, $f0 ; 32R6-NEXT: ldc1 $f2, 16($sp) ; 32R6-NEXT: jr $ra ; 32R6-NEXT: sel.d $f0, $f2, $f1 ; ; M3-LABEL: tst_select_i1_double: ; M3: # %bb.0: # %entry ; M3-NEXT: andi $1, $4, 1 ; M3-NEXT: bnez $1, .LBB0_2 ; M3-NEXT: mov.d $f0, $f13 ; M3-NEXT: # %bb.1: # %entry ; M3-NEXT: mov.d $f0, $f14 ; M3-NEXT: .LBB0_2: # %entry ; M3-NEXT: jr $ra ; M3-NEXT: nop ; ; CMOV64-LABEL: tst_select_i1_double: ; CMOV64: # %bb.0: # %entry ; CMOV64-NEXT: mov.d $f0, $f14 ; CMOV64-NEXT: andi $1, $4, 1 ; CMOV64-NEXT: jr $ra ; CMOV64-NEXT: movn.d $f0, $f13, $1 ; ; 64R6-LABEL: tst_select_i1_double: ; 64R6: # %bb.0: # %entry ; 64R6-NEXT: mtc1 $4, $f0 ; 64R6-NEXT: jr $ra ; 64R6-NEXT: sel.d $f0, $f14, $f13 ; ; MM32R3-LABEL: tst_select_i1_double: ; MM32R3: # %bb.0: # %entry ; MM32R3: mtc1 $7, $f2 #