[llvm] 4b61d04 - SystemZ: Remove unnecessary REQUIRES asserts from tests
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon May 6 00:52:43 PDT 2024
Author: Matt Arsenault
Date: 2024-05-06T09:52:35+02:00
New Revision: 4b61d04645a5289354b8f0884a132a70bc8b4350
URL: https://github.com/llvm/llvm-project/commit/4b61d04645a5289354b8f0884a132a70bc8b4350
DIFF: https://github.com/llvm/llvm-project/commit/4b61d04645a5289354b8f0884a132a70bc8b4350.diff
LOG: SystemZ: Remove unnecessary REQUIRES asserts from tests
Added:
Modified:
llvm/test/CodeGen/SystemZ/frame-26.mir
llvm/test/CodeGen/SystemZ/frame-28.mir
llvm/test/CodeGen/SystemZ/memcmp-03.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/SystemZ/frame-26.mir b/llvm/test/CodeGen/SystemZ/frame-26.mir
index d37f565bdea798..becd176cfb1b82 100644
--- a/llvm/test/CodeGen/SystemZ/frame-26.mir
+++ b/llvm/test/CodeGen/SystemZ/frame-26.mir
@@ -1,6 +1,5 @@
# RUN: llc -mtriple=s390x-linux-gnu -start-before=prologepilog %s -o - -print-after=prologepilog \
# RUN: -verify-machineinstrs 2>&1 | FileCheck %s
-# REQUIRES: asserts
#
# Test that R6 when used for an argument is modelled as being live throughout
# the function when not saved in the prologue..
@@ -15,21 +14,21 @@
--- |
-
+
@g_181 = external dso_local global i32, align 4
@g_1390 = external dso_local constant ptr, align 8
-
+
define internal i8 @fun0(i8 %arg, i8 %arg1, i32 %arg2, i8 %arg3, ptr %arg4, float %F0, float %F1) #0 {
ret i8 0
}
-
+
; Same function but in a single block which will make the verifier complain
; if R6 is killed by the original store before the point where the
; RegScavenger inserts its (killing) store of R6.
define internal i8 @fun1(i8 %arg, i8 %arg1, i32 %arg2, i8 %arg3, ptr %arg4) #0 {
ret i8 0
}
-
+
attributes #0 = { "frame-pointer"="all" }
...
@@ -74,21 +73,21 @@ machineFunctionInfo: {}
body: |
bb.0:
liveins: $f0s, $f2s, $r6d
-
+
STG killed renamable $r6d, undef renamable $r1d, 0, $noreg :: (store (s64) into `ptr undef`)
renamable $r0d = LARL @g_181
nofpexcept CEBR renamable $f0s, renamable $f2s, implicit-def $cc, implicit $fpc
STG renamable $r0d, undef renamable $r1d, 0, $noreg :: (store (s64) into `ptr undef`)
BRC 15, 4, %bb.2, implicit killed $cc
-
+
bb.1:
liveins: $f2s, $r0d
-
+
renamable $f0s = COPY killed renamable $f2s
-
+
bb.2:
liveins: $f0s, $r0d
-
+
STE killed renamable $f0s, undef renamable $r1d, 0, $noreg :: (volatile store (s32) into `ptr undef`)
renamable $r1d = nuw LA %stack.0, 16, $noreg
renamable $r2d = nuw LA %stack.0, 24, $noreg
@@ -161,7 +160,7 @@ machineFunctionInfo: {}
body: |
bb.0:
liveins: $r6d
-
+
STG killed renamable $r6d, undef renamable $r1d, 0, $noreg :: (store (s64) into `ptr undef`)
renamable $r0d = LARL @g_181
STG renamable $r0d, undef renamable $r1d, 0, $noreg :: (store (s64) into `ptr undef`)
diff --git a/llvm/test/CodeGen/SystemZ/frame-28.mir b/llvm/test/CodeGen/SystemZ/frame-28.mir
index 254b8a2cf2461b..353fe3dec9a3b2 100644
--- a/llvm/test/CodeGen/SystemZ/frame-28.mir
+++ b/llvm/test/CodeGen/SystemZ/frame-28.mir
@@ -1,6 +1,5 @@
# RUN: llc -mtriple=s390x-linux-gnu -start-before=prologepilog %s -o - -mcpu=z14 \
# RUN: -verify-machineinstrs 2>&1 | FileCheck %s
-# REQUIRES: asserts
#
# Test that redundant frame addressing anchor points are removed by
# MachineLateInstrsCleanup.
@@ -262,16 +261,16 @@ machineFunctionInfo: {}
body: |
bb.0:
successors: %bb.2(0x30000000), %bb.1(0x50000000)
-
+
renamable $r1d = LGRL @ptr :: (load (s64) from got)
CGHSI killed renamable $r1d, 0, 0, implicit-def $cc :: (volatile dereferenceable load (s64) from @ptr)
BRC 14, 8, %bb.2, implicit killed $cc
J %bb.1
-
+
bb.1:
renamable $r1d = LGRL @ptr :: (load (s64) from got)
MVGHI killed renamable $r1d, 0, 0
-
+
bb.2:
Return
diff --git a/llvm/test/CodeGen/SystemZ/memcmp-03.ll b/llvm/test/CodeGen/SystemZ/memcmp-03.ll
index f11e9f08f57da4..950e10a999935c 100644
--- a/llvm/test/CodeGen/SystemZ/memcmp-03.ll
+++ b/llvm/test/CodeGen/SystemZ/memcmp-03.ll
@@ -1,7 +1,6 @@
; Test memcmp with 0 size.
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
-; REQUIRES: asserts
declare i32 @memcmp(ptr nocapture, ptr nocapture, i64)
More information about the llvm-commits
mailing list