diff --git a/clang/test/CodeGen/convergent-functions.cpp b/clang/test/CodeGen/convergent-functions.cpp index 7ddb8d3f9450..cb8682474f93 100644 --- a/clang/test/CodeGen/convergent-functions.cpp +++ b/clang/test/CodeGen/convergent-functions.cpp @@ -1,8 +1,10 @@ -// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -fconvergent-functions -o - < %s | FileCheck -check-prefix=CONVFUNC %s -// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -o - < %s | FileCheck -check-prefix=NOCONVFUNC %s +// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -fconvergent-functions -o - < %s | FileCheck -check-prefixes=CHECK,CONVFUNC %s +// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -o - < %s | FileCheck -check-prefixes=CHECK,NOCONVFUNC %s // Test that the -fconvergent-functions flag works -// CONVFUNC: attributes #0 = { convergent {{.*}} } +// CHECK: attributes #0 = { // NOCONVFUNC-NOT: convergent +// CONVFUNC-SAME: convergent +// CHECK-SAME: } void func() { } diff --git a/clang/test/CodeGenCUDA/convergent.cu b/clang/test/CodeGenCUDA/convergent.cu index ff18f92ef1ea..5d98d4ba6926 100644 --- a/clang/test/CodeGenCUDA/convergent.cu +++ b/clang/test/CodeGenCUDA/convergent.cu @@ -42,4 +42,4 @@ __host__ __device__ void bar() { // HOST: declare void @_Z3bazv() [[BAZ_ATTR:#[0-9]+]] // HOST: attributes [[BAZ_ATTR]] = { // HOST-NOT: convergent -// NOST-SAME: } +// HOST-SAME: } diff --git a/clang/test/CodeGenCUDA/dft-func-attr-skip-intrinsic.hip b/clang/test/CodeGenCUDA/dft-func-attr-skip-intrinsic.hip index 9e3e436200fc..ee4c585cb5d7 100644 --- a/clang/test/CodeGenCUDA/dft-func-attr-skip-intrinsic.hip +++ b/clang/test/CodeGenCUDA/dft-func-attr-skip-intrinsic.hip @@ -15,4 +15,4 @@ __device__ float foo(float x) { // CHECK: attributes [[ATTR1]] = { convergent // CHECK: attributes [[ATTR2]] = { // CHECK-NOT: convergent -// CHECK: } +// CHECK-SAME: }