[clang] bb4d583 - Fix CodeGen HIP test case failing on some targets
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 10 10:31:10 PDT 2023
Author: Vikram
Date: 2023-06-10T13:28:33-04:00
New Revision: bb4d5833e564f4995db5888950a05c3ff1272ee9
URL: https://github.com/llvm/llvm-project/commit/bb4d5833e564f4995db5888950a05c3ff1272ee9
DIFF: https://github.com/llvm/llvm-project/commit/bb4d5833e564f4995db5888950a05c3ff1272ee9.diff
LOG: Fix CodeGen HIP test case failing on some targets
Added:
Modified:
clang/test/Driver/hip-options.hip
Removed:
################################################################################
diff --git a/clang/test/Driver/hip-options.hip b/clang/test/Driver/hip-options.hip
index 9ecde6cd3fbaf..1da5ce15ea13c 100644
--- a/clang/test/Driver/hip-options.hip
+++ b/clang/test/Driver/hip-options.hip
@@ -22,7 +22,7 @@
// PTH: "-cc1"{{.*}} "-fgpu-default-stream=per-thread" {{.*}}"-x" "hip-cpp-output"
// Check -mprintf-kind=hostcall
-// RUN: %clang -### -mprintf-kind=hostcall %s -save-temps 2>&1 | FileCheck -check-prefix=HOSTC %s
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -mprintf-kind=hostcall %s -save-temps 2>&1 | FileCheck -check-prefix=HOSTC %s
// HOSTC: "-cc1" "-triple" "amdgcn-amd-amdhsa"{{.*}}"-mprintf-kind=hostcall" "-Werror=format-invalid-specifier" "-E" {{.*}}
// HOSTC: "-cc1" "-triple" "amdgcn-amd-amdhsa"{{.*}} "-mprintf-kind=hostcall" "-Werror=format-invalid-specifier" {{.*}}"-x" "hip-cpp-output"
// HOSTC: "-cc1" "-triple" "amdgcn-amd-amdhsa"{{.*}} "-mprintf-kind=hostcall" "-Werror=format-invalid-specifier" {{.*}}"-x" "ir"
@@ -30,7 +30,7 @@
// HOSTC: "-cc1" "-triple" "x86_64-unknown-linux-gnu"{{.*}}"-x" "ir"
// Check -mprintf-kind=buffered
-// RUN: %clang -### -mprintf-kind=buffered %s -save-temps 2>&1 | FileCheck -check-prefix=BUFF %s
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -mprintf-kind=buffered %s -save-temps 2>&1 | FileCheck -check-prefix=BUFF %s
// BUFF: "-cc1" "-triple" "amdgcn-amd-amdhsa"{{.*}}"-mprintf-kind=buffered" "-Werror=format-invalid-specifier" "-E" {{.*}}
// BUFF: "-cc1" "-triple" "amdgcn-amd-amdhsa"{{.*}} "-mprintf-kind=buffered" "-Werror=format-invalid-specifier" {{.*}}"-x" "hip-cpp-output"
// BUFF: "-cc1" "-triple" "amdgcn-amd-amdhsa"{{.*}} "-mprintf-kind=buffered" "-Werror=format-invalid-specifier" {{.*}}"-x" "ir"
More information about the cfe-commits
mailing list