[clang] b08abf4 - [OpenMP] Fix D83281 issue on windows by allowing `dso_local` in CHECK [2/1]

Johannes Doerfert via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 29 13:49:47 PDT 2020


Author: Johannes Doerfert
Date: 2020-07-29T15:47:45-05:00
New Revision: b08abf4c808e98718b8806dafcae1626328676d4

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

LOG: [OpenMP] Fix D83281 issue on windows by allowing `dso_local` in CHECK [2/1]

The problem with 8723280b68b1e5ed97a699466720b36a32a9e406 was that the
`dso_local` is *before* the void not after. Hope this works.

Added: 
    

Modified: 
    clang/test/OpenMP/declare_variant_device_isa_codegen_1.c

Removed: 
    


################################################################################
diff  --git a/clang/test/OpenMP/declare_variant_device_isa_codegen_1.c b/clang/test/OpenMP/declare_variant_device_isa_codegen_1.c
index 25fc3941dd50..76a3eedeae30 100644
--- a/clang/test/OpenMP/declare_variant_device_isa_codegen_1.c
+++ b/clang/test/OpenMP/declare_variant_device_isa_codegen_1.c
@@ -31,18 +31,18 @@ void avx512_saxpy(int n, float s, float *x, float *y) {
 }
 
 void caller(int n, float s, float *x, float *y) {
-  // GENERIC:     define void {{.*}}caller
-  // GENERIC:      call void {{.*}}base_saxpy
-  // WITHFEATURE: define void {{.*}}caller
-  // WITHFEATURE:  call void {{.*}}avx512_saxpy
+  // GENERIC:     define {{.*}}void @{{.*}}caller
+  // GENERIC:      call void @{{.*}}base_saxpy
+  // WITHFEATURE: define {{.*}}void @{{.*}}caller
+  // WITHFEATURE:  call void @{{.*}}avx512_saxpy
   base_saxpy(n, s, x, y);
 }
 
 __attribute__((target("avx512f"))) void variant_caller(int n, float s, float *x, float *y) {
-  // GENERIC:     define void {{.*}}variant_caller
-  // GENERIC:      call void {{.*}}avx512_saxpy
-  // WITHFEATURE: define void {{.*}}variant_caller
-  // WITHFEATURE:  call void {{.*}}avx512_saxpy
+  // GENERIC:     define {{.*}}void @{{.*}}variant_caller
+  // GENERIC:      call void @{{.*}}avx512_saxpy
+  // WITHFEATURE: define {{.*}}void @{{.*}}variant_caller
+  // WITHFEATURE:  call void @{{.*}}avx512_saxpy
   base_saxpy(n, s, x, y);
 }
 


        


More information about the cfe-commits mailing list