; 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-prefixes=M2 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=CMOV32R1 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32r2 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=CMOV32R2 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32r3 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=CMOV32R2 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32r5 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=CMOV32R2 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32r6 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=32R6 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips3 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=M3 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips4 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=CMOV64 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips64 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=CMOV64 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips64r2 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=CMOV64 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips64r3 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=CMOV64 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips64r5 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=CMOV64 ; RUN: llc < %s -mtriple=mips64-unknown-linux-gnu -mcpu=mips64r6 -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=64R6 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32r3 -mattr=+micromips -verify-machineinstrs -asm-show-inst | FileCheck %s \ ; RUN: -check-prefixes=MM32R3 ; RUN: llc < %s -mtriple=mips-unknown-linux-gnu -mcpu=mips32r6 -mattr=+micromips -verify-machineinstrs | FileCheck %s \ ; RUN: -check-prefixes=MM32R6 define float @tst_select_i1_float(i1 signext %s, float %x, float %y) { ; M2-LABEL: tst_select_i1_float: ; 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: jr $ra ; M2-NEXT: mtc1 $6, $f0 ; M2-NEXT: $BB0_2: ; M2-NEXT: jr $ra ; M2-NEXT: mtc1 $5, $f0 ; ; CMOV32R1-LABEL: tst_select_i1_float: ; CMOV32R1: # %bb.0: # %entry ; CMOV32R1-NEXT: mtc1 $6, $f0 ; CMOV32R1-NEXT: andi $1, $4, 1 ; CMOV32R1-NEXT: mtc1 $5, $f1 ; CMOV32R1-NEXT: jr $ra ; CMOV32R1-NEXT: movn.s $f0, $f1, $1 ; ; CMOV32R2-LABEL: tst_select_i1_float: ; CMOV32R2: # %bb.0: # %entry ; CMOV32R2-NEXT: mtc1 $6, $f0 ; CMOV32R2-NEXT: andi $1, $4, 1 ; CMOV32R2-NEXT: mtc1 $5, $f1 ; CMOV32R2-NEXT: jr $ra ; CMOV32R2-NEXT: movn.s $f0, $f1, $1 ; ; 32R6-LABEL: tst_select_i1_float: ; 32R6: # %bb.0: # %entry ; 32R6-NEXT: mtc1 $5, $f1 ; 32R6-NEXT: mtc1 $6, $f2 ; 32R6-NEXT: mtc1 $4, $f0 ; 32R6-NEXT: jr $ra ; 32R6-NEXT: sel.s $f0, $f2, $f1 ; ; M3-LABEL: tst_select_i1_float: ; M3: # %bb.0: # %entry ; M3-NEXT: andi $1, $4, 1 ; M3-NEXT: bnez $1, .LBB0_2 ; M3-NEXT: mov.s $f0, $f13 ; M3-NEXT: # %bb.1: # %entry ; M3-NEXT: mov.s $f0, $f14 ; M3-NEXT: .LBB0_2: # %entry ; M3-NEXT: jr $ra ; M3-NEXT: nop ; ; CMOV64-LABEL: tst_select_i1_float: ; CMOV64: # %bb.0: # %entry ; CMOV64-NEXT: mov.s $f0, $f14 ; CMOV64-NEXT: andi $1, $4, 1 ; CMOV64-NEXT: jr $ra ; CMOV64-NEXT: movn.s $f0, $f13, $1 ; ; 64R6-LABEL: tst_select_i1_float: ; 64R6: # %bb.0: # %entry ; 64R6-NEXT: mtc1 $4, $f0 ; 64R6-NEXT: jr $ra ; 64R6-NEXT: sel.s $f0, $f14, $f13 ; ; MM32R3-LABEL: tst_select_i1_float: ; MM32R3: # %bb.0: # %entry ; MM32R3: mtc1 $6, $f0 #