1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -mattr=+zfh -run-pass=legalizer %s -o - \
11 ; CHECK-LABEL: name: fptoui_s1_s16
12 ; CHECK: liveins: $f10_h
14 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s16) = COPY $f10_h
15 ; CHECK-NEXT: [[FPTOUI:%[0-9]+]]:_(s32) = G_FPTOUI [[COPY]](s16)
16 ; CHECK-NEXT: $x10 = COPY [[FPTOUI]](s32)
17 ; CHECK-NEXT: PseudoRET implicit $x10
18 %0:_(s16) = COPY $f10_h
19 %1:_(s1) = G_FPTOUI %0(s16)
20 %2:_(s32) = G_ANYEXT %1(s1)
22 PseudoRET implicit $x10
31 ; CHECK-LABEL: name: fptosi_s8_s16
32 ; CHECK: liveins: $f10_h
34 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s16) = COPY $f10_h
35 ; CHECK-NEXT: [[FPTOSI:%[0-9]+]]:_(s32) = G_FPTOSI [[COPY]](s16)
36 ; CHECK-NEXT: $x10 = COPY [[FPTOSI]](s32)
37 ; CHECK-NEXT: PseudoRET implicit $x10
38 %0:_(s16) = COPY $f10_h
39 %1:_(s8) = G_FPTOSI %0(s16)
40 %2:_(s32) = G_ANYEXT %1(s8)
42 PseudoRET implicit $x10
51 ; CHECK-LABEL: name: fptoui_s8_s16
52 ; CHECK: liveins: $f10_h
54 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s16) = COPY $f10_h
55 ; CHECK-NEXT: [[FPTOUI:%[0-9]+]]:_(s32) = G_FPTOUI [[COPY]](s16)
56 ; CHECK-NEXT: $x10 = COPY [[FPTOUI]](s32)
57 ; CHECK-NEXT: PseudoRET implicit $x10
58 %0:_(s16) = COPY $f10_h
59 %1:_(s8) = G_FPTOUI %0(s16)
60 %2:_(s32) = G_ANYEXT %1(s8)
62 PseudoRET implicit $x10
71 ; CHECK-LABEL: name: fptosi_s16_s16
72 ; CHECK: liveins: $f10_h
74 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s16) = COPY $f10_h
75 ; CHECK-NEXT: [[FPTOSI:%[0-9]+]]:_(s32) = G_FPTOSI [[COPY]](s16)
76 ; CHECK-NEXT: $x10 = COPY [[FPTOSI]](s32)
77 ; CHECK-NEXT: PseudoRET implicit $x10
78 %0:_(s16) = COPY $f10_h
79 %1:_(s16) = G_FPTOSI %0(s16)
80 %2:_(s32) = G_ANYEXT %1(s16)
82 PseudoRET implicit $x10
91 ; CHECK-LABEL: name: fptoui_s16_s16
92 ; CHECK: liveins: $f10_h
94 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s16) = COPY $f10_h
95 ; CHECK-NEXT: [[FPTOUI:%[0-9]+]]:_(s32) = G_FPTOUI [[COPY]](s16)
96 ; CHECK-NEXT: $x10 = COPY [[FPTOUI]](s32)
97 ; CHECK-NEXT: PseudoRET implicit $x10
98 %0:_(s16) = COPY $f10_h
99 %1:_(s16) = G_FPTOUI %0(s16)
100 %2:_(s32) = G_ANYEXT %1(s16)
102 PseudoRET implicit $x10
111 ; CHECK-LABEL: name: fptosi_s32_s16
112 ; CHECK: liveins: $f10_h
114 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s16) = COPY $f10_h
115 ; CHECK-NEXT: [[FPTOSI:%[0-9]+]]:_(s32) = G_FPTOSI [[COPY]](s16)
116 ; CHECK-NEXT: $x10 = COPY [[FPTOSI]](s32)
117 ; CHECK-NEXT: PseudoRET implicit $x10
118 %0:_(s16) = COPY $f10_h
119 %1:_(s32) = G_FPTOSI %0(s16)
121 PseudoRET implicit $x10
130 ; CHECK-LABEL: name: fptoui_s32_s16
131 ; CHECK: liveins: $f10_h
133 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s16) = COPY $f10_h
134 ; CHECK-NEXT: [[FPTOUI:%[0-9]+]]:_(s32) = G_FPTOUI [[COPY]](s16)
135 ; CHECK-NEXT: $x10 = COPY [[FPTOUI]](s32)
136 ; CHECK-NEXT: PseudoRET implicit $x10
137 %0:_(s16) = COPY $f10_h
138 %1:_(s32) = G_FPTOUI %0(s16)
140 PseudoRET implicit $x10