[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / CodeGen / Mips / GlobalISel / regbankselect / float_constants.mir
blob4f0a688990d792cb83ae35d2782734f52c80716f
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=FP32
3 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -mattr=+fp64,+mips32r2 -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=FP64
5 --- |
7   define void @e_single_precision() {entry: ret void}
8   define void @e_double_precision() {entry: ret void}
10 ...
11 ---
12 name:            e_single_precision
13 alignment:       4
14 legalized:       true
15 tracksRegLiveness: true
16 body:             |
17   bb.1.entry:
18     ; FP32-LABEL: name: e_single_precision
19     ; FP32: [[C:%[0-9]+]]:fprb(s32) = G_FCONSTANT float 0x4005BF0A80000000
20     ; FP32: $f0 = COPY [[C]](s32)
21     ; FP32: RetRA implicit $f0
22     ; FP64-LABEL: name: e_single_precision
23     ; FP64: [[C:%[0-9]+]]:fprb(s32) = G_FCONSTANT float 0x4005BF0A80000000
24     ; FP64: $f0 = COPY [[C]](s32)
25     ; FP64: RetRA implicit $f0
26     %0:_(s32) = G_FCONSTANT float 0x4005BF0A80000000
27     $f0 = COPY %0(s32)
28     RetRA implicit $f0
30 ...
31 ---
32 name:            e_double_precision
33 alignment:       4
34 legalized:       true
35 tracksRegLiveness: true
36 body:             |
37   bb.1.entry:
38     ; FP32-LABEL: name: e_double_precision
39     ; FP32: [[C:%[0-9]+]]:fprb(s64) = G_FCONSTANT double 0x4005BF0A8B145769
40     ; FP32: $d0 = COPY [[C]](s64)
41     ; FP32: RetRA implicit $d0
42     ; FP64-LABEL: name: e_double_precision
43     ; FP64: [[C:%[0-9]+]]:fprb(s64) = G_FCONSTANT double 0x4005BF0A8B145769
44     ; FP64: $d0 = COPY [[C]](s64)
45     ; FP64: RetRA implicit $d0
46     %0:_(s64) = G_FCONSTANT double 0x4005BF0A8B145769
47     $d0 = COPY %0(s64)
48     RetRA implicit $d0
50 ...