Skip to content

Commit e09184f

Browse files
committed
[AArch64][GlobalISel] Remove -O0 from a legalizer test, which causes legalization failures to be silent.
This was masking legalization failures in some functions in the test. Remove those for now since they don't actually work.
1 parent 17764d2 commit e09184f

File tree

1 file changed

+1
-74
lines changed

1 file changed

+1
-74
lines changed

llvm/test/CodeGen/AArch64/GlobalISel/legalize-fptoi.mir

Lines changed: 1 addition & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2-
# RUN: llc -mtriple=aarch64-- -O0 -run-pass=legalizer %s -o - | FileCheck %s
2+
# RUN: llc -mtriple=aarch64-- -run-pass=legalizer %s -o - | FileCheck %s
33

44
---
55
name: test_fptosi_s32_s32
@@ -233,76 +233,3 @@ body: |
233233
%1:_(<4 x s32>) = G_FPTOSI %0
234234
$q0 = COPY %1
235235
...
236-
237-
---
238-
name: test_fptoui_s128_s32
239-
body: |
240-
bb.0:
241-
liveins: $w0
242-
; CHECK-LABEL: name: test_fptoui_s128_s32
243-
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $w0
244-
; CHECK: [[FPTOUI:%[0-9]+]]:_(s128) = G_FPTOUI [[COPY]](s32)
245-
; CHECK: $q0 = COPY [[FPTOUI]](s128)
246-
%0:_(s32) = COPY $w0
247-
%1:_(s128) = G_FPTOUI %0
248-
$q0 = COPY %1
249-
...
250-
251-
---
252-
name: test_fptosi_s128_s32
253-
body: |
254-
bb.0:
255-
liveins: $w0
256-
; CHECK-LABEL: name: test_fptosi_s128_s32
257-
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $w0
258-
; CHECK: [[FPTOSI:%[0-9]+]]:_(s128) = G_FPTOSI [[COPY]](s32)
259-
; CHECK: $q0 = COPY [[FPTOSI]](s128)
260-
%0:_(s32) = COPY $w0
261-
%1:_(s128) = G_FPTOSI %0
262-
$q0 = COPY %1
263-
...
264-
---
265-
name: test_fptosi_s88_s88
266-
body: |
267-
bb.0:
268-
liveins: $x0
269-
; CHECK-LABEL: name: test_fptosi_s88_s88
270-
; CHECK: [[DEF:%[0-9]+]]:_(s88) = G_IMPLICIT_DEF
271-
; CHECK: [[FPTOSI:%[0-9]+]]:_(s128) = G_FPTOSI [[DEF]](s88)
272-
; CHECK: [[TRUNC:%[0-9]+]]:_(s88) = G_TRUNC [[FPTOSI]](s128)
273-
; CHECK: %trunc:_(s64) = G_TRUNC [[TRUNC]](s88)
274-
; CHECK: $x0 = COPY %trunc(s64)
275-
%0:_(s88) = G_IMPLICIT_DEF
276-
%1:_(s88) = G_FPTOSI %0
277-
%trunc:_(s64) = G_TRUNC %1
278-
$x0 = COPY %trunc
279-
...
280-
---
281-
name: test_fptosi_s88_s64
282-
body: |
283-
bb.0:
284-
liveins: $x0
285-
; CHECK-LABEL: name: test_fptosi_s88_s64
286-
; CHECK: [[DEF:%[0-9]+]]:_(s64) = G_IMPLICIT_DEF
287-
; CHECK: [[FPTOSI:%[0-9]+]]:_(s128) = G_FPTOSI [[DEF]](s64)
288-
; CHECK: [[TRUNC:%[0-9]+]]:_(s88) = G_TRUNC [[FPTOSI]](s128)
289-
; CHECK: %trunc:_(s64) = G_TRUNC [[TRUNC]](s88)
290-
; CHECK: $x0 = COPY %trunc(s64)
291-
%0:_(s64) = G_IMPLICIT_DEF
292-
%1:_(s88) = G_FPTOSI %0
293-
%trunc:_(s64) = G_TRUNC %1
294-
$x0 = COPY %trunc
295-
...
296-
---
297-
name: test_fptosi_s64_s88
298-
body: |
299-
bb.0:
300-
liveins: $x0
301-
; CHECK-LABEL: name: test_fptosi_s64_s88
302-
; CHECK: [[DEF:%[0-9]+]]:_(s88) = G_IMPLICIT_DEF
303-
; CHECK: [[FPEXT:%[0-9]+]]:_(s128) = G_FPEXT [[DEF]](s88)
304-
; CHECK: [[FPTOSI:%[0-9]+]]:_(s64) = G_FPTOSI [[FPEXT]](s128)
305-
; CHECK: $x0 = COPY [[FPTOSI]](s64)
306-
%0:_(s88) = G_IMPLICIT_DEF
307-
%1:_(s64) = G_FPTOSI %0
308-
$x0 = COPY %1

0 commit comments

Comments
 (0)