2012-12-06 20:43:18 +08:00
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// Test standard include paths
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 20:43:18 +08:00
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK001 %s
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK001: "-cc1" {{.*}} "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/lib/gcc/hexagon/4.4.0/include"
|
|
|
|
// CHECK001: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/lib/gcc/hexagon/4.4.0/include-fixed"
|
|
|
|
// CHECK001: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/hexagon/include"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK001-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-as"
|
2012-12-06 20:43:18 +08:00
|
|
|
|
2013-07-19 04:29:38 +08:00
|
|
|
// RUN: %clangxx -### -target hexagon-unknown-linux \
|
2012-12-06 20:43:18 +08:00
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 20:43:18 +08:00
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK002 %s
|
2013-06-26 10:13:00 +08:00
|
|
|
// CHECK002: "-cc1" {{.*}} "-internal-isystem" "[[INSTALL_DIR:.*]]/Inputs/hexagon_tree/qc/bin/../../gnu{{/|\\\\}}hexagon/include/c++/4.4.0"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK002: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/lib/gcc/hexagon/4.4.0/include"
|
|
|
|
// CHECK002: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/lib/gcc/hexagon/4.4.0/include-fixed"
|
|
|
|
// CHECK002: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/hexagon/include"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK002-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-as"
|
2012-12-06 20:43:18 +08:00
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// Test -nostdinc, -nostdlibinc, -nostdinc++
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 20:43:18 +08:00
|
|
|
// RUN: -nostdinc \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK003 %s
|
|
|
|
// CHECK003: "-cc1"
|
|
|
|
// CHECK003-NOT: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/lib/gcc/hexagon/4.4.0/include"
|
|
|
|
// CHECK003-NOT: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/lib/gcc/hexagon/4.4.0/include-fixed"
|
|
|
|
// CHECK003-NOT: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/hexagon/include"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK003-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-as"
|
2012-12-06 20:43:18 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 20:43:18 +08:00
|
|
|
// RUN: -nostdlibinc \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK004 %s
|
|
|
|
// CHECK004: "-cc1"
|
|
|
|
// CHECK004-NOT: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/lib/gcc/hexagon/4.4.0/include"
|
|
|
|
// CHECK004-NOT: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/lib/gcc/hexagon/4.4.0/include-fixed"
|
|
|
|
// CHECK004-NOT: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/hexagon/include"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK004-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-as"
|
2012-12-06 20:43:18 +08:00
|
|
|
|
2013-07-19 04:29:38 +08:00
|
|
|
// RUN: %clangxx -### -target hexagon-unknown-linux \
|
2012-12-06 20:43:18 +08:00
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 20:43:18 +08:00
|
|
|
// RUN: -nostdlibinc \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK005 %s
|
|
|
|
// CHECK005: "-cc1"
|
|
|
|
// CHECK005-NOT: "-internal-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/hexagon/include/c++/4.4.0"
|
|
|
|
// CHECK005-NOT: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/lib/gcc/hexagon/4.4.0/include"
|
|
|
|
// CHECK005-NOT: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/lib/gcc/hexagon/4.4.0/include-fixed"
|
|
|
|
// CHECK005-NOT: "-internal-externc-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/hexagon/include"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK005-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-as"
|
2012-12-06 20:43:18 +08:00
|
|
|
|
2013-07-19 04:29:38 +08:00
|
|
|
// RUN: %clangxx -### -target hexagon-unknown-linux \
|
2012-12-06 20:43:18 +08:00
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 20:43:18 +08:00
|
|
|
// RUN: -nostdinc++ \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK006 %s
|
|
|
|
// CHECK006: "-cc1"
|
|
|
|
// CHECK006-NOT: "-internal-isystem" "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/hexagon/include/c++/4.4.0"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK006-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-as"
|
2012-12-06 22:16:43 +08:00
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// Test -march=<archname> -mcpu=<archname> -mv<number>
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 22:16:43 +08:00
|
|
|
// RUN: -march=hexagonv3 \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK007 %s
|
|
|
|
// CHECK007: "-cc1" {{.*}} "-target-cpu" "hexagonv3"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK007-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-as"{{.*}} "-march=v3"
|
|
|
|
// CHECK007-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-ld"{{.*}} "-mv3"
|
2012-12-06 22:16:43 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 22:16:43 +08:00
|
|
|
// RUN: -mcpu=hexagonv5 \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK008 %s
|
|
|
|
// CHECK008: "-cc1" {{.*}} "-target-cpu" "hexagonv5"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK008-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-as"{{.*}} "-march=v5"
|
|
|
|
// CHECK008-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-ld"{{.*}} "-mv5"
|
2012-12-06 22:16:43 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 22:16:43 +08:00
|
|
|
// RUN: -mv2 \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK009 %s
|
|
|
|
// CHECK009: "-cc1" {{.*}} "-target-cpu" "hexagonv2"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK009-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-as"{{.*}} "-march=v2"
|
|
|
|
// CHECK009-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-ld"{{.*}} "-mv2"
|
2012-12-06 22:16:43 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 22:16:43 +08:00
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK010 %s
|
|
|
|
// CHECK010: "-cc1" {{.*}} "-target-cpu" "hexagonv4"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK010-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-as"{{.*}} "-march=v4"
|
|
|
|
// CHECK010-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\\\}}hexagon-ld"{{.*}} "-mv4"
|
2012-12-06 23:46:07 +08:00
|
|
|
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not %clang -march=hexagonv2 -target hexagon-unknown-linux \
|
2013-03-12 19:52:09 +08:00
|
|
|
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V2 %s
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not %clang -mcpu=hexagonv2 -target hexagon-unknown-linux \
|
2013-03-12 19:52:09 +08:00
|
|
|
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V2 %s
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not %clang -mv2 -target hexagon-unknown-linux \
|
2013-03-12 19:52:09 +08:00
|
|
|
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V2 %s
|
|
|
|
// CHECK-UNKNOWN-V2: error: unknown target CPU 'hexagonv2'
|
|
|
|
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not %clang -march=hexagonv3 -target hexagon-unknown-linux \
|
2013-03-12 19:52:09 +08:00
|
|
|
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V3 %s
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not %clang -mcpu=hexagonv3 -target hexagon-unknown-linux \
|
2013-03-12 19:52:09 +08:00
|
|
|
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V3 %s
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not %clang -mv3 -target hexagon-unknown-linux \
|
2013-03-12 19:52:09 +08:00
|
|
|
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V3 %s
|
|
|
|
// CHECK-UNKNOWN-V3: error: unknown target CPU 'hexagonv3'
|
|
|
|
|
2012-12-06 23:46:07 +08:00
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// Test Linker related args
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
// Defaults for C
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK011 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK011: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK011-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"{{.*}}
|
|
|
|
// CHECK011-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK011-NOT: "-static"
|
|
|
|
// CHECK011-NOT: "-shared"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK011: "{{.*}}/hexagon/lib/v4/crt0_standalone.o"
|
|
|
|
// CHECK011: "{{.*}}/hexagon/lib/v4/crt0.o"
|
|
|
|
// CHECK011: "{{.*}}/hexagon/lib/v4/init.o"
|
|
|
|
// CHECK011: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4"
|
|
|
|
// CHECK011: "-L{{.*}}/lib/gcc/hexagon/4.4.0"
|
|
|
|
// CHECK011: "-L{{.*}}/lib/gcc"
|
|
|
|
// CHECK011: "-L{{.*}}/hexagon/lib/v4"
|
|
|
|
// CHECK011: "-L{{.*}}/hexagon/lib"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK011: "{{[^"]+}}.o"
|
|
|
|
// CHECK011: "--start-group" "-lstandalone" "-lc" "-lgcc" "--end-group"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK011: "{{.*}}/hexagon/lib/v4/fini.o"
|
2012-12-06 23:46:07 +08:00
|
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
// Defaults for C++
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
2013-07-19 04:29:38 +08:00
|
|
|
// RUN: %clangxx -### -target hexagon-unknown-linux \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK012 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK012: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK012-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"{{.*}}
|
|
|
|
// CHECK012-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK012-NOT: "-static"
|
|
|
|
// CHECK012-NOT: "-shared"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK012: "{{.*}}/hexagon/lib/v4/crt0_standalone.o"
|
|
|
|
// CHECK012: "{{.*}}/hexagon/lib/v4/crt0.o"
|
|
|
|
// CHECK012: "{{.*}}/hexagon/lib/v4/init.o"
|
|
|
|
// CHECK012: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4"
|
|
|
|
// CHECK012: "-L{{.*}}/lib/gcc/hexagon/4.4.0"
|
|
|
|
// CHECK012: "-L{{.*}}/lib/gcc"
|
|
|
|
// CHECK012: "-L{{.*}}/hexagon/lib/v4"
|
|
|
|
// CHECK012: "-L{{.*}}/hexagon/lib"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK012: "{{[^"]+}}.o"
|
|
|
|
// CHECK012: "-lstdc++" "-lm"
|
|
|
|
// CHECK012: "--start-group" "-lstandalone" "-lc" "-lgcc" "--end-group"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK012: "{{.*}}/hexagon/lib/v4/fini.o"
|
2012-12-06 23:46:07 +08:00
|
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
// Additional Libraries (-L)
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -Lone -L two -L three \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK013 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK013: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK013-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"{{.*}}
|
|
|
|
// CHECK013-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK013: "{{.*}}/hexagon/lib/v4/crt0_standalone.o"
|
|
|
|
// CHECK013: "{{.*}}/hexagon/lib/v4/crt0.o"
|
|
|
|
// CHECK013: "{{.*}}/hexagon/lib/v4/init.o"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK013: "-Lone" "-Ltwo" "-Lthree"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK013: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4"
|
|
|
|
// CHECK013: "-L{{.*}}/lib/gcc/hexagon/4.4.0"
|
|
|
|
// CHECK013: "-L{{.*}}/lib/gcc"
|
|
|
|
// CHECK013: "-L{{.*}}/hexagon/lib/v4"
|
|
|
|
// CHECK013: "-L{{.*}}/hexagon/lib"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK013: "{{[^"]+}}.o"
|
|
|
|
// CHECK013: "--start-group" "-lstandalone" "-lc" "-lgcc" "--end-group"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK013: "{{.*}}/hexagon/lib/v4/fini.o"
|
2012-12-06 23:46:07 +08:00
|
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
// -static, -shared
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -static \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK014 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK014: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK014-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"{{.*}}
|
|
|
|
// CHECK014-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK014: "-static"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK014: "{{.*}}/hexagon/lib/v4/crt0_standalone.o"
|
|
|
|
// CHECK014: "{{.*}}/hexagon/lib/v4/crt0.o"
|
|
|
|
// CHECK014: "{{.*}}/hexagon/lib/v4/init.o"
|
|
|
|
// CHECK014: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4"
|
|
|
|
// CHECK014: "-L{{.*}}/lib/gcc/hexagon/4.4.0"
|
|
|
|
// CHECK014: "-L{{.*}}/lib/gcc"
|
|
|
|
// CHECK014: "-L{{.*}}/hexagon/lib/v4"
|
|
|
|
// CHECK014: "-L{{.*}}/hexagon/lib"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK014: "{{[^"]+}}.o"
|
|
|
|
// CHECK014: "--start-group" "-lstandalone" "-lc" "-lgcc" "--end-group"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK014: "{{.*}}/hexagon/lib/v4/fini.o"
|
2012-12-06 23:46:07 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -shared \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK015 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK015: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK015-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"{{.*}}
|
|
|
|
// CHECK015-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK015: "-shared" "-call_shared"
|
|
|
|
// CHECK015-NOT: crt0_standalone.o
|
|
|
|
// CHECK015-NOT: crt0.o
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK015: "{{.*}}/hexagon/lib/v4/G0/initS.o"
|
|
|
|
// CHECK015: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4/G0"
|
|
|
|
// CHECK015: "-L{{.*}}/lib/gcc/hexagon/4.4.0/G0"
|
|
|
|
// CHECK015: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4"
|
|
|
|
// CHECK015: "-L{{.*}}/lib/gcc/hexagon/4.4.0"
|
|
|
|
// CHECK015: "-L{{.*}}/lib/gcc"
|
|
|
|
// CHECK015: "-L{{.*}}/hexagon/lib/v4/G0"
|
|
|
|
// CHECK015: "-L{{.*}}/hexagon/lib/G0"
|
|
|
|
// CHECK015: "-L{{.*}}/hexagon/lib/v4"
|
|
|
|
// CHECK015: "-L{{.*}}/hexagon/lib"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK015: "{{[^"]+}}.o"
|
|
|
|
// CHECK015: "--start-group"
|
|
|
|
// CHECK015-NOT: "-lstandalone"
|
|
|
|
// CHECK015-NOT: "-lc"
|
|
|
|
// CHECK015: "-lgcc"
|
|
|
|
// CHECK015: "--end-group"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK015: "{{.*}}/hexagon/lib/v4/G0/finiS.o"
|
2012-12-06 23:46:07 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -shared \
|
|
|
|
// RUN: -static \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK016 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK016: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK016-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"{{.*}}
|
|
|
|
// CHECK016-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK016: "-shared" "-call_shared" "-static"
|
|
|
|
// CHECK016-NOT: crt0_standalone.o
|
|
|
|
// CHECK016-NOT: crt0.o
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK016: "{{.*}}/hexagon/lib/v4/G0/init.o"
|
|
|
|
// CHECK016: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4/G0"
|
|
|
|
// CHECK016: "-L{{.*}}/lib/gcc/hexagon/4.4.0/G0"
|
|
|
|
// CHECK016: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4"
|
|
|
|
// CHECK016: "-L{{.*}}/lib/gcc/hexagon/4.4.0"
|
|
|
|
// CHECK016: "-L{{.*}}/lib/gcc"
|
|
|
|
// CHECK016: "-L{{.*}}/hexagon/lib/v4/G0"
|
|
|
|
// CHECK016: "-L{{.*}}/hexagon/lib/G0"
|
|
|
|
// CHECK016: "-L{{.*}}/hexagon/lib/v4"
|
|
|
|
// CHECK016: "-L{{.*}}/hexagon/lib"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK016: "{{[^"]+}}.o"
|
|
|
|
// CHECK016: "--start-group"
|
|
|
|
// CHECK016-NOT: "-lstandalone"
|
|
|
|
// CHECK016-NOT: "-lc"
|
|
|
|
// CHECK016: "-lgcc"
|
|
|
|
// CHECK016: "--end-group"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK016: "{{.*}}/hexagon/lib/v4/G0/fini.o"
|
2012-12-06 23:46:07 +08:00
|
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
// -nostdlib, -nostartfiles, -nodefaultlibs
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
2013-07-19 04:29:38 +08:00
|
|
|
// RUN: %clangxx -### -target hexagon-unknown-linux \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -nostdlib \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK017 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK017: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK017-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"{{.*}}
|
|
|
|
// CHECK017-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK017-NOT: crt0_standalone.o
|
|
|
|
// CHECK017-NOT: crt0.o
|
|
|
|
// CHECK017-NOT: init.o
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK017: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4"
|
|
|
|
// CHECK017: "-L{{.*}}/lib/gcc/hexagon/4.4.0"
|
|
|
|
// CHECK017: "-L{{.*}}/lib/gcc"
|
|
|
|
// CHECK017: "-L{{.*}}/hexagon/lib/v4"
|
|
|
|
// CHECK017: "-L{{.*}}/hexagon/lib"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK017: "{{[^"]+}}.o"
|
|
|
|
// CHECK017-NOT: "-lstdc++"
|
|
|
|
// CHECK017-NOT: "-lm"
|
|
|
|
// CHECK017-NOT: "--start-group"
|
|
|
|
// CHECK017-NOT: "-lstandalone"
|
|
|
|
// CHECK017-NOT: "-lc"
|
|
|
|
// CHECK017-NOT: "-lgcc"
|
|
|
|
// CHECK017-NOT: "--end-group"
|
|
|
|
// CHECK017-NOT: fini.o
|
|
|
|
|
2013-07-19 04:29:38 +08:00
|
|
|
// RUN: %clangxx -### -target hexagon-unknown-linux \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -nostartfiles \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK018 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK018: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK018-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"{{.*}}
|
|
|
|
// CHECK018-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK018-NOT: crt0_standalone.o
|
|
|
|
// CHECK018-NOT: crt0.o
|
|
|
|
// CHECK018-NOT: init.o
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK018: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4"
|
|
|
|
// CHECK018: "-L{{.*}}/lib/gcc/hexagon/4.4.0"
|
|
|
|
// CHECK018: "-L{{.*}}/lib/gcc"
|
|
|
|
// CHECK018: "-L{{.*}}/hexagon/lib/v4"
|
|
|
|
// CHECK018: "-L{{.*}}/hexagon/lib"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK018: "{{[^"]+}}.o"
|
|
|
|
// CHECK018: "-lstdc++"
|
|
|
|
// CHECK018: "-lm"
|
|
|
|
// CHECK018: "--start-group"
|
|
|
|
// CHECK018: "-lstandalone"
|
|
|
|
// CHECK018: "-lc"
|
|
|
|
// CHECK018: "-lgcc"
|
|
|
|
// CHECK018: "--end-group"
|
|
|
|
// CHECK018-NOT: fini.o
|
|
|
|
|
2013-07-19 04:29:38 +08:00
|
|
|
// RUN: %clangxx -### -target hexagon-unknown-linux \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -nodefaultlibs \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK019 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK019: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK019-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"{{.*}}
|
|
|
|
// CHECK019-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK019: "{{.*}}/hexagon/lib/v4/crt0_standalone.o"
|
|
|
|
// CHECK019: "{{.*}}/hexagon/lib/v4/crt0.o"
|
|
|
|
// CHECK019: "{{.*}}/hexagon/lib/v4/init.o"
|
|
|
|
// CHECK019: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4"
|
|
|
|
// CHECK019: "-L{{.*}}/lib/gcc/hexagon/4.4.0"
|
|
|
|
// CHECK019: "-L{{.*}}/lib/gcc"
|
|
|
|
// CHECK019: "-L{{.*}}/hexagon/lib/v4"
|
|
|
|
// CHECK019: "-L{{.*}}/hexagon/lib"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK019: "{{[^"]+}}.o"
|
|
|
|
// CHECK019-NOT: "-lstdc++"
|
|
|
|
// CHECK019-NOT: "-lm"
|
|
|
|
// CHECK019-NOT: "--start-group"
|
|
|
|
// CHECK019-NOT: "-lstandalone"
|
|
|
|
// CHECK019-NOT: "-lc"
|
|
|
|
// CHECK019-NOT: "-lgcc"
|
|
|
|
// CHECK019-NOT: "--end-group"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK019: "{{.*}}/hexagon/lib/v4/fini.o"
|
2012-12-06 23:46:07 +08:00
|
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
// -moslib
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -moslib=first -moslib=second \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK020 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK020: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK020-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"{{.*}}
|
|
|
|
// CHECK020-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK020-NOT: "-static"
|
|
|
|
// CHECK020-NOT: "-shared"
|
|
|
|
// CHECK020-NOT: crt0_standalone.o
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK020: "{{.*}}/hexagon/lib/v4/crt0.o"
|
|
|
|
// CHECK020: "{{.*}}/hexagon/lib/v4/init.o"
|
|
|
|
// CHECK020: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4"
|
|
|
|
// CHECK020: "-L{{.*}}/lib/gcc/hexagon/4.4.0"
|
|
|
|
// CHECK020: "-L{{.*}}/lib/gcc"
|
|
|
|
// CHECK020: "-L{{.*}}/hexagon/lib/v4"
|
|
|
|
// CHECK020: "-L{{.*}}/hexagon/lib"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK020: "{{[^"]+}}.o"
|
|
|
|
// CHECK020: "--start-group"
|
|
|
|
// CHECK020: "-lfirst" "-lsecond"
|
|
|
|
// CHECK020-NOT: "-lstandalone"
|
|
|
|
// CHECK020: "-lc" "-lgcc" "--end-group"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK020: "{{.*}}/hexagon/lib/v4/fini.o"
|
2012-12-06 23:46:07 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -moslib=first -moslib=second -moslib=standalone\
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK021 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK021: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK021-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"{{.*}}
|
|
|
|
// CHECK021-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK021-NOT: "-static"
|
|
|
|
// CHECK021-NOT: "-shared"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK021: "{{.*}}/hexagon/lib/v4/crt0_standalone.o"
|
|
|
|
// CHECK021: "{{.*}}/hexagon/lib/v4/crt0.o"
|
|
|
|
// CHECK021: "{{.*}}/hexagon/lib/v4/init.o"
|
|
|
|
// CHECK021: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4"
|
|
|
|
// CHECK021: "-L{{.*}}/lib/gcc/hexagon/4.4.0"
|
|
|
|
// CHECK021: "-L{{.*}}/lib/gcc"
|
|
|
|
// CHECK021: "-L{{.*}}/hexagon/lib/v4"
|
|
|
|
// CHECK021: "-L{{.*}}/hexagon/lib"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK021: "{{[^"]+}}.o"
|
|
|
|
// CHECK021: "--start-group"
|
|
|
|
// CHECK021: "-lfirst" "-lsecond"
|
|
|
|
// CHECK021: "-lstandalone"
|
|
|
|
// CHECK021: "-lc" "-lgcc" "--end-group"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK021: "{{.*}}/hexagon/lib/v4/fini.o"
|
2012-12-06 23:46:07 +08:00
|
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
// Other args to pass to linker
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
2013-07-19 04:29:38 +08:00
|
|
|
// RUN: %clangxx -### -target hexagon-unknown-linux \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-06 23:46:07 +08:00
|
|
|
// RUN: -s \
|
|
|
|
// RUN: -Tbss 0xdead -Tdata 0xbeef -Ttext 0xcafe \
|
|
|
|
// RUN: -t \
|
|
|
|
// RUN: -e start_here \
|
|
|
|
// RUN: -uFoo -undefined Bar \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK022 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK022: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK022-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"{{.*}}
|
|
|
|
// CHECK022-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK022: "{{.*}}/hexagon/lib/v4/crt0_standalone.o"
|
|
|
|
// CHECK022: "{{.*}}/hexagon/lib/v4/crt0.o"
|
|
|
|
// CHECK022: "{{.*}}/hexagon/lib/v4/init.o"
|
|
|
|
// CHECK022: "-L{{.*}}/lib/gcc/hexagon/4.4.0/v4"
|
|
|
|
// CHECK022: "-L{{.*}}/lib/gcc/hexagon/4.4.0"
|
|
|
|
// CHECK022: "-L{{.*}}/lib/gcc"
|
|
|
|
// CHECK022: "-L{{.*}}/hexagon/lib/v4"
|
|
|
|
// CHECK022: "-L{{.*}}/hexagon/lib"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK022: "-s"
|
2015-07-30 02:39:14 +08:00
|
|
|
// CHECK022: "-Tbss" "0xdead" "-Tdata" "0xbeef" "-Ttext" "0xcafe"
|
2012-12-06 23:46:07 +08:00
|
|
|
// CHECK022: "-t"
|
|
|
|
// CHECK022: "-u" "Foo" "-undefined" "Bar"
|
|
|
|
// CHECK022: "{{[^"]+}}.o"
|
|
|
|
// CHECK022: "-lstdc++" "-lm"
|
|
|
|
// CHECK022: "--start-group" "-lstandalone" "-lc" "-lgcc" "--end-group"
|
2012-12-07 04:55:41 +08:00
|
|
|
// CHECK022: "{{.*}}/hexagon/lib/v4/fini.o"
|
2012-12-07 01:49:03 +08:00
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// pic, small data threshold
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-07 01:49:03 +08:00
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK023 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK023: "-cc1"
|
2012-12-07 01:49:03 +08:00
|
|
|
// CHECK023: "-mrelocation-model" "static"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK023-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"
|
2012-12-07 01:49:03 +08:00
|
|
|
// CHECK023-NOT: "-G{{[0-9]+}}"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK023-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-07 01:49:03 +08:00
|
|
|
// CHECK023-NOT: "-G{{[0-9]+}}"
|
|
|
|
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-07 01:49:03 +08:00
|
|
|
// RUN: -fpic \
|
|
|
|
// RUN: %s 2>&1 \
|
2015-05-14 21:52:08 +08:00
|
|
|
// RUN: | sed -e "s/\.exe//" -e "s/\.EXE//" | FileCheck -check-prefix=CHECK024 %s
|
2012-12-07 01:49:03 +08:00
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-07 01:49:03 +08:00
|
|
|
// RUN: -fPIC \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK024 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK024: "-cc1"
|
2012-12-07 01:49:03 +08:00
|
|
|
// CHECK024-NOT: "-mrelocation-model" "static"
|
|
|
|
// CHECK024: "-pic-level" "{{[12]}}"
|
|
|
|
// CHECK024: "-mllvm" "-hexagon-small-data-threshold=0"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK024-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"
|
2012-12-07 01:49:03 +08:00
|
|
|
// CHECK024: "-G0"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK024-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-07 01:49:03 +08:00
|
|
|
// CHECK024: "-G0"
|
|
|
|
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-07 01:49:03 +08:00
|
|
|
// RUN: -G=8 \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK025 %s
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-07 01:49:03 +08:00
|
|
|
// RUN: -G 8 \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK025 %s
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-07 01:49:03 +08:00
|
|
|
// RUN: -msmall-data-threshold=8 \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK025 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK025: "-cc1"
|
2012-12-07 01:49:03 +08:00
|
|
|
// CHECK025: "-mrelocation-model" "static"
|
|
|
|
// CHECK025: "-mllvm" "-hexagon-small-data-threshold=8"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK025-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"
|
2012-12-07 01:49:03 +08:00
|
|
|
// CHECK025: "-G8"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK025-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-07 01:49:03 +08:00
|
|
|
// CHECK025: "-G8"
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// pie
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-07 01:49:03 +08:00
|
|
|
// RUN: -pie \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK026 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK026: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK026-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"
|
|
|
|
// CHECK026-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-07 01:49:03 +08:00
|
|
|
// CHECK026: "-pie"
|
|
|
|
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-07 01:49:03 +08:00
|
|
|
// RUN: -pie -shared \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK027 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK027: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK027-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"
|
|
|
|
// CHECK027-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-07 01:49:03 +08:00
|
|
|
// CHECK027-NOT: "-pie"
|
2012-12-07 21:52:44 +08:00
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// Misc Defaults
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-07 21:52:44 +08:00
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK028 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK028: "-cc1"
|
2012-12-07 21:52:44 +08:00
|
|
|
// CHECK028: "-mqdsp6-compat"
|
|
|
|
// CHECK028: "-Wreturn-type"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK028-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"
|
|
|
|
// CHECK028-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|
2012-12-08 01:23:04 +08:00
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// Test Assembler related args
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-linux \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/qc/bin \
|
2014-11-08 01:48:03 +08:00
|
|
|
// RUN: --gcc-toolchain="" \
|
2012-12-08 01:23:04 +08:00
|
|
|
// RUN: -gdwarf-2 \
|
|
|
|
// RUN: -Wa,--noexecstack,--trap \
|
|
|
|
// RUN: -Xassembler --keep-locals \
|
|
|
|
// RUN: %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK029 %s
|
2014-06-27 19:18:13 +08:00
|
|
|
// CHECK029: "-cc1"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK029-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-as"
|
2013-04-12 01:27:18 +08:00
|
|
|
// CHECK029: "--noexecstack" "--trap" "--keep-locals"
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK029-NEXT: "{{.*}}/bin{{/|\\\\}}hexagon-ld"
|