[PATCH] D157258: [NFC][AArch64] Added checks for global entries in ReplaceWithVeclib testing

Jolanta Jensen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 8 05:29:49 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG932972305b4a: [NFC][AArch64] Added checks for global entries in ReplaceWithVeclib testing (authored by jolanta.jensen).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157258/new/

https://reviews.llvm.org/D157258

Files:
  llvm/test/CodeGen/AArch64/replace-intrinsics-with-veclib-armpl.ll
  llvm/test/CodeGen/AArch64/replace-intrinsics-with-veclib-sleef-scalable.ll
  llvm/test/CodeGen/AArch64/replace-intrinsics-with-veclib-sleef.ll


Index: llvm/test/CodeGen/AArch64/replace-intrinsics-with-veclib-sleef.ll
===================================================================
--- llvm/test/CodeGen/AArch64/replace-intrinsics-with-veclib-sleef.ll
+++ llvm/test/CodeGen/AArch64/replace-intrinsics-with-veclib-sleef.ll
@@ -1,8 +1,11 @@
-; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals
 ; RUN: opt -vector-library=sleefgnuabi -replace-with-veclib -S < %s | FileCheck %s
 
 target triple = "aarch64-unknown-linux-gnu"
 
+;.
+; CHECK: @[[LLVM_COMPILER_USED:[a-zA-Z0-9_$"\\.-]+]] = appending global [14 x ptr] [ptr @_ZGVnN2v_cos, ptr @_ZGVnN4v_cosf, ptr @_ZGVnN2v_exp, ptr @_ZGVnN4v_expf, ptr @_ZGVnN2v_exp2, ptr @_ZGVnN4v_exp2f, ptr @_ZGVnN2v_log, ptr @_ZGVnN4v_logf, ptr @_ZGVnN2v_log10, ptr @_ZGVnN4v_log10f, ptr @_ZGVnN2v_log2, ptr @_ZGVnN4v_log2f, ptr @_ZGVnN2v_sin, ptr @_ZGVnN4v_sinf], section "llvm.metadata"
+;.
 define <2 x double> @llvm_ceil_f64(<2 x double> %in) {
 ; CHECK-LABEL: @llvm_ceil_f64(
 ; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.ceil.v2f64(<2 x double> [[IN:%.*]])
@@ -403,3 +406,6 @@
 declare <4 x float> @llvm.sqrt.v4f32(<4 x float>)
 declare <2 x double> @llvm.trunc.v2f64(<2 x double>)
 declare <4 x float> @llvm.trunc.v4f32(<4 x float>)
+;.
+; CHECK: attributes #[[ATTR0:[0-9]+]] = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
+;.
Index: llvm/test/CodeGen/AArch64/replace-intrinsics-with-veclib-sleef-scalable.ll
===================================================================
--- llvm/test/CodeGen/AArch64/replace-intrinsics-with-veclib-sleef-scalable.ll
+++ llvm/test/CodeGen/AArch64/replace-intrinsics-with-veclib-sleef-scalable.ll
@@ -1,4 +1,4 @@
-; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals
 ; RUN: opt -mattr=+sve -vector-library=sleefgnuabi -replace-with-veclib -S < %s | FileCheck %s
 
 target triple = "aarch64-unknown-linux-gnu"
@@ -405,3 +405,7 @@
 declare <vscale x 4 x float> @llvm.sqrt.nxv4f32(<vscale x 4 x float>)
 declare <vscale x 2 x double> @llvm.trunc.nxv2f64(<vscale x 2 x double>)
 declare <vscale x 4 x float> @llvm.trunc.nxv4f32(<vscale x 4 x float>)
+;.
+; CHECK: attributes #[[ATTR0:[0-9]+]] = { "target-features"="+sve" }
+; CHECK: attributes #[[ATTR1:[0-9]+]] = { nocallback nofree nosync nounwind speculatable willreturn memory(none) "target-features"="+sve" }
+;.
Index: llvm/test/CodeGen/AArch64/replace-intrinsics-with-veclib-armpl.ll
===================================================================
--- llvm/test/CodeGen/AArch64/replace-intrinsics-with-veclib-armpl.ll
+++ llvm/test/CodeGen/AArch64/replace-intrinsics-with-veclib-armpl.ll
@@ -1,4 +1,4 @@
-; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals --version 2
 ; RUN: opt -S -vector-library=ArmPL -replace-with-veclib < %s | FileCheck %s
 
 target triple = "aarch64-unknown-linux-gnu"
@@ -14,6 +14,9 @@
 declare <vscale x 2 x double> @llvm.cos.nxv2f64(<vscale x 2 x double>)
 declare <vscale x 4 x float> @llvm.cos.nxv4f32(<vscale x 4 x float>)
 
+;.
+; CHECK: @[[LLVM_COMPILER_USED:[a-zA-Z0-9_$"\\.-]+]] = appending global [14 x ptr] [ptr @armpl_vcosq_f64, ptr @armpl_vcosq_f32, ptr @armpl_vsinq_f64, ptr @armpl_vsinq_f32, ptr @armpl_vexpq_f64, ptr @armpl_vexpq_f32, ptr @armpl_vexp2q_f64, ptr @armpl_vexp2q_f32, ptr @armpl_vlogq_f64, ptr @armpl_vlogq_f32, ptr @armpl_vlog2q_f64, ptr @armpl_vlog2q_f32, ptr @armpl_vlog10q_f64, ptr @armpl_vlog10q_f32], section "llvm.metadata"
+;.
 define <2 x double> @llvm_cos_f64(<2 x double> %in) {
 ; CHECK-LABEL: define <2 x double> @llvm_cos_f64
 ; CHECK-SAME: (<2 x double> [[IN:%.*]]) {
@@ -378,3 +381,7 @@
 }
 
 attributes #0 = { "target-features"="+sve" }
+;.
+; CHECK: attributes #[[ATTR0:[0-9]+]] = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
+; CHECK: attributes #[[ATTR1]] = { "target-features"="+sve" }
+;.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157258.548167.patch
Type: text/x-patch
Size: 4226 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230808/53165848/attachment.bin>


More information about the llvm-commits mailing list