r269000 - [CUDA] Fix flush-denormals.cu test so that it checks what it intends to CHECK.
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Mon May 9 17:34:50 PDT 2016
Author: jlebar
Date: Mon May 9 19:34:50 2016
New Revision: 269000
URL: http://llvm.org/viewvc/llvm-project?rev=269000&view=rev
Log:
[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.
Modified:
cfe/trunk/test/CodeGenCUDA/flush-denormals.cu
Modified: cfe/trunk/test/CodeGenCUDA/flush-denormals.cu
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCUDA/flush-denormals.cu?rev=269000&r1=268999&r2=269000&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCUDA/flush-denormals.cu (original)
+++ cfe/trunk/test/CodeGenCUDA/flush-denormals.cu Mon May 9 19:34:50 2016
@@ -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"
More information about the cfe-commits
mailing list