1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=FP32
3 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -mattr=+fp64,+mips32r2 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=FP64
6 define void @fabs_f32() {entry: ret void}
7 define void @fabs_f64() {entry: ret void}
15 tracksRegLiveness: true
20 ; FP32-LABEL: name: fabs_f32
22 ; FP32: [[COPY:%[0-9]+]]:fgr32 = COPY $f12
23 ; FP32: [[FABS_S:%[0-9]+]]:fgr32 = FABS_S [[COPY]]
24 ; FP32: $f0 = COPY [[FABS_S]]
25 ; FP32: RetRA implicit $f0
26 ; FP64-LABEL: name: fabs_f32
28 ; FP64: [[COPY:%[0-9]+]]:fgr32 = COPY $f12
29 ; FP64: [[FABS_S:%[0-9]+]]:fgr32 = FABS_S [[COPY]]
30 ; FP64: $f0 = COPY [[FABS_S]]
31 ; FP64: RetRA implicit $f0
32 %0:fprb(s32) = COPY $f12
33 %1:fprb(s32) = G_FABS %0
43 tracksRegLiveness: true
48 ; FP32-LABEL: name: fabs_f64
50 ; FP32: [[COPY:%[0-9]+]]:afgr64 = COPY $d6
51 ; FP32: [[FABS_D32_:%[0-9]+]]:afgr64 = FABS_D32 [[COPY]]
52 ; FP32: $d0 = COPY [[FABS_D32_]]
53 ; FP32: RetRA implicit $d0
54 ; FP64-LABEL: name: fabs_f64
56 ; FP64: [[COPY:%[0-9]+]]:fgr64 = COPY $d6
57 ; FP64: [[FABS_D64_:%[0-9]+]]:fgr64 = FABS_D64 [[COPY]]
58 ; FP64: $d0 = COPY [[FABS_D64_]]
59 ; FP64: RetRA implicit $d0
60 %0:fprb(s64) = COPY $d6
61 %1:fprb(s64) = G_FABS %0