[llvm-branch-commits] [clang] ec9f2c3 - test/OpenMP/parallel_codegen.cpp: Allow multiple result attributes

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jan 1 10:51:10 PST 2021


Author: Fangrui Song
Date: 2021-01-01T10:46:34-08:00
New Revision: ec9f2c3be070ec2fc4d45f13c70e68c8c0deafc2

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

LOG: test/OpenMP/parallel_codegen.cpp: Allow multiple result attributes

On many targets the matched line is `define dso_local i32 @main` while
on ppc64 it is `define dso_local signext i32 @main`.

Added: 
    

Modified: 
    clang/test/OpenMP/parallel_codegen.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/OpenMP/parallel_codegen.cpp b/clang/test/OpenMP/parallel_codegen.cpp
index f61e6867b280..b32f6c3b91c7 100644
--- a/clang/test/OpenMP/parallel_codegen.cpp
+++ b/clang/test/OpenMP/parallel_codegen.cpp
@@ -59,7 +59,7 @@ int main (int argc, char **argv) {
   return tmain(argv);
 }
 
-// ALL-LABEL: define {{[a-z\_\b]*[ ]?i32}} @main({{i32[ ]?[a-z]*}} %argc, i8** %argv)
+// ALL-LABEL: define{{[ _a-z]*}} i32 @main({{i32[ ]?[a-z]*}} %argc, i8** %argv)
 // ALL: store i32 %argc, i32* [[ARGC_ADDR:%.+]],
 // ALL: [[VLA:%.+]] = alloca i32, i{{[0-9]+}} [[VLA_SIZE:%[^,]+]],
 // CHECK:  call {{.*}}void (%struct.ident_t*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call(%struct.ident_t* [[DEF_LOC_2]], i32 2, void (i32*, i32*, ...)* bitcast (void (i32*, i32*, i{{[0-9]+}}, i32*)* [[OMP_OUTLINED:@.+]] to void (i32*, i32*, ...)*), i{{[0-9]+}} [[VLA_SIZE]], i32* [[VLA]])


        


More information about the llvm-branch-commits mailing list