[flang-commits] [flang] 93fd05c - [Flang][OpenMP] Attempt to make map-types-and-sizes.f90 test more agnostic to other architectures

Andrew Gozillon via flang-commits flang-commits at lists.llvm.org
Mon Feb 5 11:12:26 PST 2024


Author: Andrew Gozillon
Date: 2024-02-05T13:11:28-06:00
New Revision: 93fd05c0891caa8c68cb37b64217467a0ef60412

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

LOG: [Flang][OpenMP] Attempt to make map-types-and-sizes.f90 test more agnostic to other architectures

This test was updated by me recently, however, the newly
added CHECK-LABEL checks are breaking one of the RHEL
PowerPC buildbots as the functions appear to be generated
slightly different (in this case added attributes I think).

Added: 
    

Modified: 
    flang/test/Integration/OpenMP/map-types-and-sizes.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Integration/OpenMP/map-types-and-sizes.f90 b/flang/test/Integration/OpenMP/map-types-and-sizes.f90
index 7c438302e6398..283ac227f3436 100644
--- a/flang/test/Integration/OpenMP/map-types-and-sizes.f90
+++ b/flang/test/Integration/OpenMP/map-types-and-sizes.f90
@@ -90,7 +90,7 @@ subroutine mapType_char
   !$omp end target
 end subroutine mapType_char
 
-!CHECK-LABEL: define void @maptype_ptr_explicit_() {
+!CHECK-LABEL: define {{.*}} @{{.*}}maptype_ptr_explicit_{{.*}}
 !CHECK: %[[ALLOCA:.*]] = alloca { ptr, i64, i32, i8, i8, i8, i8 }, i64 1, align 8
 !CHECK: %[[ALLOCA_GEP:.*]] = getelementptr { ptr, i64, i32, i8, i8, i8, i8 }, ptr %[[ALLOCA]], i32 1
 !CHECK: %[[ALLOCA_GEP_INT:.*]] = ptrtoint ptr %[[ALLOCA_GEP]] to i64
@@ -101,7 +101,7 @@ end subroutine mapType_char
 !CHECK: store i64 %[[DIV]], ptr %[[OFFLOAD_SIZE_ARR]], align 8
 
 
-!CHECK-LABEL: define void @maptype_allocatable_explicit_() {
+!CHECK-LABEL: define {{.*}} @{{.*}}maptype_allocatable_explicit_{{.*}}
 !CHECK: %[[ALLOCA:.*]] = alloca { ptr, i64, i32, i8, i8, i8, i8 }, i64 1, align 8
 !CHECK: %[[ALLOCA_GEP:.*]] = getelementptr { ptr, i64, i32, i8, i8, i8, i8 }, ptr %[[ALLOCA]], i32 1
 !CHECK: %[[ALLOCA_GEP_INT:.*]] = ptrtoint ptr %[[ALLOCA_GEP]] to i64


        


More information about the flang-commits mailing list