summaryrefslogtreecommitdiff
path: root/test/Driver/amdgcn-toolchain-pic.cl
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2018-02-15 01:01:53 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2018-02-15 01:01:53 +0000
commit217f7efd9759e285b74a1368dfbd054368d7d9f3 (patch)
tree4e0af4dffa47a78f8a70fb058dce20d2ee7d0f10 /test/Driver/amdgcn-toolchain-pic.cl
parent14119b8e8b92b0957e873e5a2d1d4e7d7ff8b857 (diff)
downloadclang-217f7efd9759e285b74a1368dfbd054368d7d9f3.tar.gz
AMDGPU: Enable PIC by default for amdgcn
Differential Revision: https://reviews.llvm.org/D43094 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/amdgcn-toolchain-pic.cl')
-rw-r--r--test/Driver/amdgcn-toolchain-pic.cl7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Driver/amdgcn-toolchain-pic.cl b/test/Driver/amdgcn-toolchain-pic.cl
new file mode 100644
index 0000000000..870f1f3132
--- /dev/null
+++ b/test/Driver/amdgcn-toolchain-pic.cl
@@ -0,0 +1,7 @@
+// RUN: %clang -### -target amdgcn-- -mcpu=gfx803 %s 2>&1 | FileCheck %s
+// RUN: %clang -### -target amdgcn-amd- -mcpu=gfx803 %s 2>&1 | FileCheck %s
+// RUN: %clang -### -target amdgcn-amd-amdhsa -mcpu=gfx803 %s 2>&1 | FileCheck %s
+// RUN: %clang -### -target amdgcn-amd-amdpal -mcpu=gfx803 %s 2>&1 | FileCheck %s
+// RUN: %clang -### -target amdgcn-amd-mesa3d -mcpu=gfx803 %s 2>&1 | FileCheck %s
+
+// CHECK: clang{{.*}} "-mrelocation-model" "pic" "-pic-level" "1"