[llvm] 5a7be09 - [SystemZ] Regenerate some fp tests + remove unused check prefixes
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 10:38:48 PST 2020
Author: Simon Pilgrim
Date: 2020-11-11T18:38:22Z
New Revision: 5a7be094e378fe14d35d711632cace2cf9381cd8
URL: https://github.com/llvm/llvm-project/commit/5a7be094e378fe14d35d711632cace2cf9381cd8
DIFF: https://github.com/llvm/llvm-project/commit/5a7be094e378fe14d35d711632cace2cf9381cd8.diff
LOG: [SystemZ] Regenerate some fp tests + remove unused check prefixes
Just use default CHECK
Added:
Modified:
llvm/test/CodeGen/SystemZ/fp-conv-02.ll
llvm/test/CodeGen/SystemZ/fp-strict-sqrt-01.ll
llvm/test/CodeGen/SystemZ/fp-strict-sqrt-02.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/SystemZ/fp-conv-02.ll b/llvm/test/CodeGen/SystemZ/fp-conv-02.ll
index b312bcaf6a48..9d975184c3a7 100644
--- a/llvm/test/CodeGen/SystemZ/fp-conv-02.ll
+++ b/llvm/test/CodeGen/SystemZ/fp-conv-02.ll
@@ -1,14 +1,17 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
+
+;
; Test extensions of f32 to f64.
;
-; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 \
-; RUN: | FileCheck -check-prefix=CHECK -check-prefix=CHECK-SCALAR %s
-; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
; Check register extension.
define double @f1(float %val) {
; CHECK-LABEL: f1:
-; CHECK: ldebr %f0, %f0
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: ldebr %f0, %f0
+; CHECK-NEXT: br %r14
%res = fpext float %val to double
ret double %res
}
@@ -16,8 +19,9 @@ define double @f1(float %val) {
; Check the low end of the LDEB range.
define double @f2(float *%ptr) {
; CHECK-LABEL: f2:
-; CHECK: ldeb %f0, 0(%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: ldeb %f0, 0(%r2)
+; CHECK-NEXT: br %r14
%val = load float, float *%ptr
%res = fpext float %val to double
ret double %res
@@ -26,8 +30,9 @@ define double @f2(float *%ptr) {
; Check the high end of the aligned LDEB range.
define double @f3(float *%base) {
; CHECK-LABEL: f3:
-; CHECK: ldeb %f0, 4092(%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: ldeb %f0, 4092(%r2)
+; CHECK-NEXT: br %r14
%ptr = getelementptr float, float *%base, i64 1023
%val = load float, float *%ptr
%res = fpext float %val to double
@@ -38,9 +43,10 @@ define double @f3(float *%base) {
; Other sequences besides this one would be OK.
define double @f4(float *%base) {
; CHECK-LABEL: f4:
-; CHECK: aghi %r2, 4096
-; CHECK: ldeb %f0, 0(%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: aghi %r2, 4096
+; CHECK-NEXT: ldeb %f0, 0(%r2)
+; CHECK-NEXT: br %r14
%ptr = getelementptr float, float *%base, i64 1024
%val = load float, float *%ptr
%res = fpext float %val to double
@@ -50,9 +56,10 @@ define double @f4(float *%base) {
; Check negative displacements, which also need separate address logic.
define double @f5(float *%base) {
; CHECK-LABEL: f5:
-; CHECK: aghi %r2, -4
-; CHECK: ldeb %f0, 0(%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: aghi %r2, -4
+; CHECK-NEXT: ldeb %f0, 0(%r2)
+; CHECK-NEXT: br %r14
%ptr = getelementptr float, float *%base, i64 -1
%val = load float, float *%ptr
%res = fpext float %val to double
@@ -62,9 +69,10 @@ define double @f5(float *%base) {
; Check that LDEB allows indices.
define double @f6(float *%base, i64 %index) {
; CHECK-LABEL: f6:
-; CHECK: sllg %r1, %r3, 2
-; CHECK: ldeb %f0, 400(%r1,%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: sllg %r1, %r3, 2
+; CHECK-NEXT: ldeb %f0, 400(%r1,%r2)
+; CHECK-NEXT: br %r14
%ptr1 = getelementptr float, float *%base, i64 %index
%ptr2 = getelementptr float, float *%ptr1, i64 100
%val = load float, float *%ptr2
diff --git a/llvm/test/CodeGen/SystemZ/fp-strict-sqrt-01.ll b/llvm/test/CodeGen/SystemZ/fp-strict-sqrt-01.ll
index cff83950617c..23c4941c71a9 100644
--- a/llvm/test/CodeGen/SystemZ/fp-strict-sqrt-01.ll
+++ b/llvm/test/CodeGen/SystemZ/fp-strict-sqrt-01.ll
@@ -1,16 +1,19 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
+
+;
; Test strict 32-bit square root.
;
-; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 \
-; RUN: | FileCheck -check-prefix=CHECK -check-prefix=CHECK-SCALAR %s
-; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
declare float @llvm.experimental.constrained.sqrt.f32(float, metadata, metadata)
; Check register square root.
define float @f1(float %val) #0 {
; CHECK-LABEL: f1:
-; CHECK: sqebr %f0, %f0
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: sqebr %f0, %f0
+; CHECK-NEXT: br %r14
%res = call float @llvm.experimental.constrained.sqrt.f32(
float %val,
metadata !"round.dynamic",
@@ -21,8 +24,9 @@ define float @f1(float %val) #0 {
; Check the low end of the SQEB range.
define float @f2(float *%ptr) #0 {
; CHECK-LABEL: f2:
-; CHECK: sqeb %f0, 0(%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: sqeb %f0, 0(%r2)
+; CHECK-NEXT: br %r14
%val = load float, float *%ptr
%res = call float @llvm.experimental.constrained.sqrt.f32(
float %val,
@@ -34,8 +38,9 @@ define float @f2(float *%ptr) #0 {
; Check the high end of the aligned SQEB range.
define float @f3(float *%base) #0 {
; CHECK-LABEL: f3:
-; CHECK: sqeb %f0, 4092(%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: sqeb %f0, 4092(%r2)
+; CHECK-NEXT: br %r14
%ptr = getelementptr float, float *%base, i64 1023
%val = load float, float *%ptr
%res = call float @llvm.experimental.constrained.sqrt.f32(
@@ -49,9 +54,10 @@ define float @f3(float *%base) #0 {
; Other sequences besides this one would be OK.
define float @f4(float *%base) #0 {
; CHECK-LABEL: f4:
-; CHECK: aghi %r2, 4096
-; CHECK: sqeb %f0, 0(%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: aghi %r2, 4096
+; CHECK-NEXT: sqeb %f0, 0(%r2)
+; CHECK-NEXT: br %r14
%ptr = getelementptr float, float *%base, i64 1024
%val = load float, float *%ptr
%res = call float @llvm.experimental.constrained.sqrt.f32(
@@ -64,9 +70,10 @@ define float @f4(float *%base) #0 {
; Check negative displacements, which also need separate address logic.
define float @f5(float *%base) #0 {
; CHECK-LABEL: f5:
-; CHECK: aghi %r2, -4
-; CHECK: sqeb %f0, 0(%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: aghi %r2, -4
+; CHECK-NEXT: sqeb %f0, 0(%r2)
+; CHECK-NEXT: br %r14
%ptr = getelementptr float, float *%base, i64 -1
%val = load float, float *%ptr
%res = call float @llvm.experimental.constrained.sqrt.f32(
@@ -79,9 +86,10 @@ define float @f5(float *%base) #0 {
; Check that SQEB allows indices.
define float @f6(float *%base, i64 %index) #0 {
; CHECK-LABEL: f6:
-; CHECK: sllg %r1, %r3, 2
-; CHECK: sqeb %f0, 400(%r1,%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: sllg %r1, %r3, 2
+; CHECK-NEXT: sqeb %f0, 400(%r1,%r2)
+; CHECK-NEXT: br %r14
%ptr1 = getelementptr float, float *%base, i64 %index
%ptr2 = getelementptr float, float *%ptr1, i64 100
%val = load float, float *%ptr2
diff --git a/llvm/test/CodeGen/SystemZ/fp-strict-sqrt-02.ll b/llvm/test/CodeGen/SystemZ/fp-strict-sqrt-02.ll
index 791c39301e48..d456a338629c 100644
--- a/llvm/test/CodeGen/SystemZ/fp-strict-sqrt-02.ll
+++ b/llvm/test/CodeGen/SystemZ/fp-strict-sqrt-02.ll
@@ -1,16 +1,19 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
+
+;
; Test strict 64-bit square root.
;
-; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 \
-; RUN: | FileCheck -check-prefix=CHECK -check-prefix=CHECK-SCALAR %s
-; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
declare double @llvm.experimental.constrained.sqrt.f64(double, metadata, metadata)
; Check register square root.
define double @f1(double %val) #0 {
; CHECK-LABEL: f1:
-; CHECK: sqdbr %f0, %f0
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: sqdbr %f0, %f0
+; CHECK-NEXT: br %r14
%res = call double @llvm.experimental.constrained.sqrt.f64(
double %val,
metadata !"round.dynamic",
@@ -21,8 +24,9 @@ define double @f1(double %val) #0 {
; Check the low end of the SQDB range.
define double @f2(double *%ptr) #0 {
; CHECK-LABEL: f2:
-; CHECK: sqdb %f0, 0(%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: sqdb %f0, 0(%r2)
+; CHECK-NEXT: br %r14
%val = load double, double *%ptr
%res = call double @llvm.experimental.constrained.sqrt.f64(
double %val,
@@ -34,8 +38,9 @@ define double @f2(double *%ptr) #0 {
; Check the high end of the aligned SQDB range.
define double @f3(double *%base) #0 {
; CHECK-LABEL: f3:
-; CHECK: sqdb %f0, 4088(%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: sqdb %f0, 4088(%r2)
+; CHECK-NEXT: br %r14
%ptr = getelementptr double, double *%base, i64 511
%val = load double, double *%ptr
%res = call double @llvm.experimental.constrained.sqrt.f64(
@@ -49,9 +54,10 @@ define double @f3(double *%base) #0 {
; Other sequences besides this one would be OK.
define double @f4(double *%base) #0 {
; CHECK-LABEL: f4:
-; CHECK: aghi %r2, 4096
-; CHECK: sqdb %f0, 0(%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: aghi %r2, 4096
+; CHECK-NEXT: sqdb %f0, 0(%r2)
+; CHECK-NEXT: br %r14
%ptr = getelementptr double, double *%base, i64 512
%val = load double, double *%ptr
%res = call double @llvm.experimental.constrained.sqrt.f64(
@@ -64,9 +70,10 @@ define double @f4(double *%base) #0 {
; Check negative displacements, which also need separate address logic.
define double @f5(double *%base) #0 {
; CHECK-LABEL: f5:
-; CHECK: aghi %r2, -8
-; CHECK: sqdb %f0, 0(%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: aghi %r2, -8
+; CHECK-NEXT: sqdb %f0, 0(%r2)
+; CHECK-NEXT: br %r14
%ptr = getelementptr double, double *%base, i64 -1
%val = load double, double *%ptr
%res = call double @llvm.experimental.constrained.sqrt.f64(
@@ -79,9 +86,10 @@ define double @f5(double *%base) #0 {
; Check that SQDB allows indices.
define double @f6(double *%base, i64 %index) #0 {
; CHECK-LABEL: f6:
-; CHECK: sllg %r1, %r3, 3
-; CHECK: sqdb %f0, 800(%r1,%r2)
-; CHECK: br %r14
+; CHECK: # %bb.0:
+; CHECK-NEXT: sllg %r1, %r3, 3
+; CHECK-NEXT: sqdb %f0, 800(%r1,%r2)
+; CHECK-NEXT: br %r14
%ptr1 = getelementptr double, double *%base, i64 %index
%ptr2 = getelementptr double, double *%ptr1, i64 100
%val = load double, double *%ptr2
More information about the llvm-commits
mailing list