[Clang] [NFC] fix CHECK lines for convergent attribute tests

This commit is contained in:
Sameer Sahasrabuddhe 2021-06-28 13:43:02 +05:30
parent bf457919f2
commit 280593bd3f
3 changed files with 7 additions and 5 deletions

View File

@ -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() { }

View File

@ -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: }

View File

@ -15,4 +15,4 @@ __device__ float foo(float x) {
// CHECK: attributes [[ATTR1]] = { convergent
// CHECK: attributes [[ATTR2]] = {
// CHECK-NOT: convergent
// CHECK: }
// CHECK-SAME: }