[llvm] e09184f - [AArch64][GlobalISel] Remove -O0 from a legalizer test, which causes legalization failures to be silent.

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 00:36:21 PST 2023


Author: Amara Emerson
Date: 2023-11-07T00:36:15-08:00
New Revision: e09184ffe087e7efcdd15eec65c89b7a3cb3762f

URL: https://github.com/llvm/llvm-project/commit/e09184ffe087e7efcdd15eec65c89b7a3cb3762f
DIFF: https://github.com/llvm/llvm-project/commit/e09184ffe087e7efcdd15eec65c89b7a3cb3762f.diff

LOG: [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.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AArch64/GlobalISel/legalize-fptoi.mir b/llvm/test/CodeGen/AArch64/GlobalISel/legalize-fptoi.mir
index ef86464a9682a04..73af9c4ba105bc3 100644
--- a/llvm/test/CodeGen/AArch64/GlobalISel/legalize-fptoi.mir
+++ b/llvm/test/CodeGen/AArch64/GlobalISel/legalize-fptoi.mir
@@ -1,5 +1,5 @@
 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
-# RUN: llc -mtriple=aarch64-- -O0 -run-pass=legalizer %s -o - | FileCheck %s
+# RUN: llc -mtriple=aarch64-- -run-pass=legalizer %s -o - | FileCheck %s
 
 ---
 name:            test_fptosi_s32_s32
@@ -233,76 +233,3 @@ body: |
     %1:_(<4 x s32>) = G_FPTOSI %0
     $q0 = COPY %1
 ...
-
----
-name:            test_fptoui_s128_s32
-body: |
-  bb.0:
-    liveins: $w0
-    ; CHECK-LABEL: name: test_fptoui_s128_s32
-    ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $w0
-    ; CHECK: [[FPTOUI:%[0-9]+]]:_(s128) = G_FPTOUI [[COPY]](s32)
-    ; CHECK: $q0 = COPY [[FPTOUI]](s128)
-    %0:_(s32) = COPY $w0
-    %1:_(s128) = G_FPTOUI %0
-    $q0 = COPY %1
-...
-
----
-name:            test_fptosi_s128_s32
-body: |
-  bb.0:
-    liveins: $w0
-    ; CHECK-LABEL: name: test_fptosi_s128_s32
-    ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $w0
-    ; CHECK: [[FPTOSI:%[0-9]+]]:_(s128) = G_FPTOSI [[COPY]](s32)
-    ; CHECK: $q0 = COPY [[FPTOSI]](s128)
-    %0:_(s32) = COPY $w0
-    %1:_(s128) = G_FPTOSI %0
-    $q0 = COPY %1
-...
----
-name:            test_fptosi_s88_s88
-body: |
-  bb.0:
-    liveins: $x0
-    ; CHECK-LABEL: name: test_fptosi_s88_s88
-    ; CHECK: [[DEF:%[0-9]+]]:_(s88) = G_IMPLICIT_DEF
-    ; CHECK: [[FPTOSI:%[0-9]+]]:_(s128) = G_FPTOSI [[DEF]](s88)
-    ; CHECK: [[TRUNC:%[0-9]+]]:_(s88) = G_TRUNC [[FPTOSI]](s128)
-    ; CHECK: %trunc:_(s64) = G_TRUNC [[TRUNC]](s88)
-    ; CHECK: $x0 = COPY %trunc(s64)
-    %0:_(s88) = G_IMPLICIT_DEF
-    %1:_(s88) = G_FPTOSI %0
-    %trunc:_(s64) = G_TRUNC %1
-    $x0 = COPY %trunc
-...
----
-name:            test_fptosi_s88_s64
-body: |
-  bb.0:
-    liveins: $x0
-    ; CHECK-LABEL: name: test_fptosi_s88_s64
-    ; CHECK: [[DEF:%[0-9]+]]:_(s64) = G_IMPLICIT_DEF
-    ; CHECK: [[FPTOSI:%[0-9]+]]:_(s128) = G_FPTOSI [[DEF]](s64)
-    ; CHECK: [[TRUNC:%[0-9]+]]:_(s88) = G_TRUNC [[FPTOSI]](s128)
-    ; CHECK: %trunc:_(s64) = G_TRUNC [[TRUNC]](s88)
-    ; CHECK: $x0 = COPY %trunc(s64)
-    %0:_(s64) = G_IMPLICIT_DEF
-    %1:_(s88) = G_FPTOSI %0
-    %trunc:_(s64) = G_TRUNC %1
-    $x0 = COPY %trunc
-...
----
-name:            test_fptosi_s64_s88
-body: |
-  bb.0:
-    liveins: $x0
-    ; CHECK-LABEL: name: test_fptosi_s64_s88
-    ; CHECK: [[DEF:%[0-9]+]]:_(s88) = G_IMPLICIT_DEF
-    ; CHECK: [[FPEXT:%[0-9]+]]:_(s128) = G_FPEXT [[DEF]](s88)
-    ; CHECK: [[FPTOSI:%[0-9]+]]:_(s64) = G_FPTOSI [[FPEXT]](s128)
-    ; CHECK: $x0 = COPY [[FPTOSI]](s64)
-    %0:_(s88) = G_IMPLICIT_DEF
-    %1:_(s64) = G_FPTOSI %0
-    $x0 = COPY %1


        


More information about the llvm-commits mailing list