forked from OSchip/llvm-project
[Clang] [NFC] fix CHECK lines for convergent attribute tests
This commit is contained in:
parent
bf457919f2
commit
280593bd3f
|
@ -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() { }
|
||||
|
|
|
@ -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: }
|
||||
|
|
|
@ -15,4 +15,4 @@ __device__ float foo(float x) {
|
|||
// CHECK: attributes [[ATTR1]] = { convergent
|
||||
// CHECK: attributes [[ATTR2]] = {
|
||||
// CHECK-NOT: convergent
|
||||
// CHECK: }
|
||||
// CHECK-SAME: }
|
||||
|
|
Loading…
Reference in New Issue