1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=FP32 3# RUN: llc -O0 -mtriple=mipsel-linux-gnu -mattr=+fp64,+mips32r2 -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=FP64 4--- | 5 6 define void @oeq_s() {entry: ret void} 7 define void @oeq_d() {entry: ret void} 8 9... 10--- 11name: oeq_s 12alignment: 4 13tracksRegLiveness: true 14body: | 15 bb.1.entry: 16 liveins: $f12, $f14 17 18 ; FP32-LABEL: name: oeq_s 19 ; FP32: liveins: $f12, $f14 20 ; FP32: [[COPY:%[0-9]+]]:_(s32) = COPY $f12 21 ; FP32: [[COPY1:%[0-9]+]]:_(s32) = COPY $f14 22 ; FP32: [[FCMP:%[0-9]+]]:_(s32) = G_FCMP floatpred(oeq), [[COPY]](s32), [[COPY1]] 23 ; FP32: $v0 = COPY [[FCMP]](s32) 24 ; FP32: RetRA implicit $v0 25 ; FP64-LABEL: name: oeq_s 26 ; FP64: liveins: $f12, $f14 27 ; FP64: [[COPY:%[0-9]+]]:_(s32) = COPY $f12 28 ; FP64: [[COPY1:%[0-9]+]]:_(s32) = COPY $f14 29 ; FP64: [[FCMP:%[0-9]+]]:_(s32) = G_FCMP floatpred(oeq), [[COPY]](s32), [[COPY1]] 30 ; FP64: $v0 = COPY [[FCMP]](s32) 31 ; FP64: RetRA implicit $v0 32 %0:_(s32) = COPY $f12 33 %1:_(s32) = COPY $f14 34 %2:_(s1) = G_FCMP floatpred(oeq), %0(s32), %1 35 %3:_(s32) = G_ANYEXT %2(s1) 36 $v0 = COPY %3(s32) 37 RetRA implicit $v0 38 39... 40--- 41name: oeq_d 42alignment: 4 43tracksRegLiveness: true 44body: | 45 bb.1.entry: 46 liveins: $d6, $d7 47 48 ; FP32-LABEL: name: oeq_d 49 ; FP32: liveins: $d6, $d7 50 ; FP32: [[COPY:%[0-9]+]]:_(s64) = COPY $d6 51 ; FP32: [[COPY1:%[0-9]+]]:_(s64) = COPY $d7 52 ; FP32: [[FCMP:%[0-9]+]]:_(s32) = G_FCMP floatpred(oeq), [[COPY]](s64), [[COPY1]] 53 ; FP32: $v0 = COPY [[FCMP]](s32) 54 ; FP32: RetRA implicit $v0 55 ; FP64-LABEL: name: oeq_d 56 ; FP64: liveins: $d6, $d7 57 ; FP64: [[COPY:%[0-9]+]]:_(s64) = COPY $d6 58 ; FP64: [[COPY1:%[0-9]+]]:_(s64) = COPY $d7 59 ; FP64: [[FCMP:%[0-9]+]]:_(s32) = G_FCMP floatpred(oeq), [[COPY]](s64), [[COPY1]] 60 ; FP64: $v0 = COPY [[FCMP]](s32) 61 ; FP64: RetRA implicit $v0 62 %0:_(s64) = COPY $d6 63 %1:_(s64) = COPY $d7 64 %2:_(s1) = G_FCMP floatpred(oeq), %0(s64), %1 65 %3:_(s32) = G_ANYEXT %2(s1) 66 $v0 = COPY %3(s32) 67 RetRA implicit $v0 68 69... 70