From: Justin Lebar Date: Tue, 10 May 2016 00:34:50 +0000 (+0000) Subject: [CUDA] Fix flush-denormals.cu test so that it checks what it intends to CHECK. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f69b633109a9ef6c0cf63861e980109009fb731;p=clang [CUDA] Fix flush-denormals.cu test so that it checks what it intends to CHECK. 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 --- diff --git a/test/CodeGenCUDA/flush-denormals.cu b/test/CodeGenCUDA/flush-denormals.cu index cab660254d..e528d7b102 100644 --- a/test/CodeGenCUDA/flush-denormals.cu +++ b/test/CodeGenCUDA/flush-denormals.cu @@ -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"