2012-12-11 13:52:24 +08:00
|
|
|
// RUN: %clang -### -c -integrated-as %s 2>&1 | FileCheck %s
|
|
|
|
// CHECK: cc1as
|
|
|
|
// CHECK-NOT: -relax-all
|
2013-07-26 05:19:01 +08:00
|
|
|
|
2013-09-27 05:00:51 +08:00
|
|
|
// RUN: %clang -### -c -integrated-as -Wa,-L %s 2>&1 | FileCheck --check-prefix=OPT_L %s
|
|
|
|
// OPT_L: msave-temp-labels
|
|
|
|
|
2013-11-15 06:52:58 +08:00
|
|
|
// Test that -I params in -Wa, and -Xassembler args are passed to integrated assembler
|
2013-12-07 04:42:24 +08:00
|
|
|
// RUN: %clang -### -c -integrated-as %s -Wa,-I,foo_dir 2>&1 | FileCheck --check-prefix=WA_INCLUDE1 %s
|
2013-11-15 06:52:58 +08:00
|
|
|
// WA_INCLUDE1: cc1as
|
|
|
|
// WA_INCLUDE1: "-I" "foo_dir"
|
|
|
|
|
2013-12-07 04:42:24 +08:00
|
|
|
// RUN: %clang -### -c -integrated-as %s -Wa,-Ifoo_dir 2>&1 | FileCheck --check-prefix=WA_INCLUDE2 %s
|
2013-11-15 06:52:58 +08:00
|
|
|
// WA_INCLUDE2: cc1as
|
|
|
|
// WA_INCLUDE2: "-Ifoo_dir"
|
|
|
|
|
2013-12-07 04:42:24 +08:00
|
|
|
// RUN: %clang -### -c -integrated-as %s -Wa,-I -Wa,foo_dir 2>&1 | FileCheck --check-prefix=WA_INCLUDE3 %s
|
2013-11-15 06:52:58 +08:00
|
|
|
// WA_INCLUDE3: cc1as
|
|
|
|
// WA_INCLUDE3: "-I" "foo_dir"
|
|
|
|
|
2013-12-07 04:42:24 +08:00
|
|
|
// RUN: %clang -### -c -integrated-as %s -Xassembler -I -Xassembler foo_dir 2>&1 | FileCheck --check-prefix=XA_INCLUDE1 %s
|
2013-11-15 06:52:58 +08:00
|
|
|
// XA_INCLUDE1: cc1as
|
|
|
|
// XA_INCLUDE1: "-I" "foo_dir"
|
|
|
|
|
2013-12-07 04:42:24 +08:00
|
|
|
// RUN: %clang -### -c -integrated-as %s -Xassembler -Ifoo_dir 2>&1 | FileCheck --check-prefix=XA_INCLUDE2 %s
|
2013-11-15 06:52:58 +08:00
|
|
|
// XA_INCLUDE2: cc1as
|
|
|
|
// XA_INCLUDE2: "-Ifoo_dir"
|
2014-01-17 11:17:40 +08:00
|
|
|
|
2015-09-15 04:31:28 +08:00
|
|
|
// RUN: %clang -### -c -integrated-as %s -gdwarf-4 -gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2 %s
|
2015-10-08 12:24:12 +08:00
|
|
|
// DWARF2: "-debug-info-kind=limited" "-dwarf-version=2"
|
2014-05-19 21:39:13 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -c -integrated-as %s -gdwarf-3 2>&1 | FileCheck --check-prefix=DWARF3 %s
|
2015-10-08 12:24:12 +08:00
|
|
|
// DWARF3: "-debug-info-kind=limited" "-dwarf-version=3"
|
2014-05-19 21:39:13 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -c -integrated-as %s -gdwarf-4 2>&1 | FileCheck --check-prefix=DWARF4 %s
|
2015-10-08 12:24:12 +08:00
|
|
|
// DWARF4: "-debug-info-kind=limited" "-dwarf-version=4"
|
2014-05-19 21:39:13 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -c -integrated-as %s -Xassembler -gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2XASSEMBLER %s
|
2015-10-08 12:24:12 +08:00
|
|
|
// DWARF2XASSEMBLER: "-debug-info-kind=limited" "-dwarf-version=2"
|
2014-05-19 21:39:13 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -c -integrated-as %s -Wa,-gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2WA %s
|
2015-10-08 12:24:12 +08:00
|
|
|
// DWARF2WA: "-debug-info-kind=limited" "-dwarf-version=2"
|
|
|
|
|
|
|
|
// A dwarf version number that driver can't parse is just stuffed in.
|
|
|
|
// RUN: %clang -### -c -integrated-as %s -Wa,-gdwarf-huh 2>&1 | FileCheck --check-prefix=BOGODWARF %s
|
|
|
|
// BOGODWARF: "-gdwarf-huh"
|
2015-06-24 02:20:13 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -x assembler -c -integrated-as %s -I myincludedir 2>&1 | FileCheck --check-prefix=INCLUDEPATH %s
|
|
|
|
// INCLUDEPATH: "-I" "myincludedir"
|
2015-08-19 23:12:02 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -x assembler -c -fPIC -integrated-as %s 2>&1 | FileCheck --check-prefix=PIC %s
|
|
|
|
// PIC: "-mrelocation-model" "pic"
|