]> granicus.if.org Git - clang/commitdiff
[CUDA] Fix flush-denormals.cu test so that it checks what it intends to CHECK.
authorJustin Lebar <jlebar@google.com>
Tue, 10 May 2016 00:34:50 +0000 (00:34 +0000)
committerJustin Lebar <jlebar@google.com>
Tue, 10 May 2016 00:34:50 +0000 (00:34 +0000)
FileCheck does not evaluate plain CHECKs if you pass -check-prefix; you
have to ask for it explicitly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269000 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCUDA/flush-denormals.cu

index cab660254d8bd06cc8424265992823824a5534f1..e528d7b102d464530cb4fba88ac41630ef568e78 100644 (file)
@@ -1,7 +1,9 @@
 // RUN: %clang_cc1 -fcuda-is-device \
-// RUN:   -triple nvptx-nvidia-cuda -emit-llvm -o - %s | FileCheck %s -check-prefix NOFTZ
+// RUN:   -triple nvptx-nvidia-cuda -emit-llvm -o - %s | \
+// RUN:   FileCheck %s -check-prefix CHECK -check-prefix NOFTZ
 // RUN: %clang_cc1 -fcuda-is-device -fcuda-flush-denormals-to-zero \
-// RUN:   -triple nvptx-nvidia-cuda -emit-llvm -o - %s | FileCheck %s -check-prefix FTZ
+// RUN:   -triple nvptx-nvidia-cuda -emit-llvm -o - %s | \
+// RUN:   FileCheck %s -check-prefix CHECK -check-prefix FTZ
 
 #include "Inputs/cuda.h"
 
@@ -10,7 +12,7 @@
 // -fcuda-flush-denormals-to-zero.  Further, check that we reflect the presence
 // or absence of -fcuda-flush-denormals-to-zero in a module flag.
 
-// CHECK: define void @foo() #0
+// CHECK-LABEL: define void @foo() #0
 extern "C" __device__ void foo() {}
 
 // FTZ: attributes #0 = {{.*}} "nvptx-f32ftz"="true"