[clang] e987c37 - Fix lit tests hip-include-path.hip and hip-host-cpu-macros.cu

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 5 10:22:01 PDT 2020


Author: Yaxun (Sam) Liu
Date: 2020-06-05T13:21:35-04:00
New Revision: e987c372185d805e3a30097366af2c6f94bc0b29

URL: https://github.com/llvm/llvm-project/commit/e987c372185d805e3a30097366af2c6f94bc0b29
DIFF: https://github.com/llvm/llvm-project/commit/e987c372185d805e3a30097366af2c6f94bc0b29.diff

LOG: Fix lit tests hip-include-path.hip and hip-host-cpu-macros.cu

Added: 
    

Modified: 
    clang/test/Driver/hip-include-path.hip
    clang/test/Preprocessor/hip-host-cpu-macros.cu

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/hip-include-path.hip b/clang/test/Driver/hip-include-path.hip
index 9fa3125a5070..f4a312656d1c 100644
--- a/clang/test/Driver/hip-include-path.hip
+++ b/clang/test/Driver/hip-include-path.hip
@@ -22,7 +22,7 @@
 // COMMON: {{.*}}include/c++
 // COMMON: clang/{{.*}}/include
 
-// COMMON-LABEL: clang{{.*}} -cc1 -triple x86_64-unknown-linux-gnu
+// COMMON-LABEL: clang{{.*}} -cc1 -triple x86_64
 // WRAP: clang/{{.*}}/include/cuda_wrappers
 // NOWRAP-NOT: clang/{{.*}}/include/cuda_wrappers
 // HIP: {{.*}}Inputs/rocm/include

diff  --git a/clang/test/Preprocessor/hip-host-cpu-macros.cu b/clang/test/Preprocessor/hip-host-cpu-macros.cu
index efec439c3656..559541eecb0a 100644
--- a/clang/test/Preprocessor/hip-host-cpu-macros.cu
+++ b/clang/test/Preprocessor/hip-host-cpu-macros.cu
@@ -8,6 +8,6 @@ DEVICE __SSE3__
 HOST __SSE3__
 #endif
 
-// RUN: %clang -x hip -E -target x86_64-linux-gnu -msse3 --cuda-gpu-arch=gfx803 -nogpulib -o - %s 2>&1 | FileCheck %s
+// RUN: %clang -x hip -E -target x86_64-linux-gnu -msse3 --cuda-gpu-arch=gfx803 -nogpulib -nogpuinc -o - %s 2>&1 | FileCheck %s
 
 // CHECK-NOT: SSE3


        


More information about the cfe-commits mailing list