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
6 define void @oeq_s() {entry: ret void}
7 define void @oeq_d() {entry: ret void}
13 tracksRegLiveness: true
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
34 %2:_(s1) = G_FCMP floatpred(oeq), %0(s32), %1
35 %3:_(s32) = G_ANYEXT %2(s1)
43 tracksRegLiveness: true
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
64 %2:_(s1) = G_FCMP floatpred(oeq), %0(s64), %1
65 %3:_(s32) = G_ANYEXT %2(s1)