[LV] Add test showing debug output for loops with uncountable BTCs.
[llvm-project.git] / clang / test / Driver / ve-toolchain.c
blob86565089e0d891a7c297b01f3ef4bab93ab468d7
1 /// Check the behavior of toolchain for NEC Aurora VE
2 /// UNSUPPORTED: system-windows
4 ///-----------------------------------------------------------------------------
5 /// Checking dwarf-version
7 // RUN: %clang -### -g --target=ve %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s
8 // DWARF_VER: "-dwarf-version=5"
10 ///-----------------------------------------------------------------------------
11 /// Checking include-path
13 // RUN: %clang -### --target=ve --sysroot %S/Inputs/basic_ve_tree %s \
14 // RUN: -resource-dir=%S/Inputs/basic_ve_tree/resource_dir \
15 // RUN: 2>&1 | FileCheck -check-prefix=DEFINC %s
16 // DEFINC: "-cc1"
17 // DEFINC-SAME: "-nostdsysteminc"
18 // DEFINC-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
19 // DEFINC-SAME: "-isysroot" "[[SYSROOT:[^"]+]]"
20 // DEFINC-SAME: "-internal-isystem" "[[RESOURCE_DIR]]/include"
21 // DEFINC-SAME: "-internal-isystem" "[[SYSROOT]]/opt/nec/ve/include"
23 // RUN: %clang -### --target=ve --sysroot %S/Inputs/basic_ve_tree %s \
24 // RUN: -resource-dir=%S/Inputs/basic_ve_tree/resource_dir \
25 // RUN: -nostdlibinc 2>&1 | FileCheck -check-prefix=NOSTDLIBINC %s
26 // NOSTDLIBINC: "-cc1"
27 // NOSTDLIBINC-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
28 // NOSTDLIBINC-SAME: "-isysroot" "[[SYSROOT:[^"]+]]"
29 // NOSTDLIBINC-SAME: "-internal-isystem" "[[RESOURCE_DIR]]/include"
30 // NOSTDLIBINC-NOT: "-internal-isystem" "[[SYSROOT]]/opt/nec/ve/include"
32 // RUN: %clang -### --target=ve --sysroot %S/Inputs/basic_ve_tree %s \
33 // RUN: -resource-dir=%S/Inputs/basic_ve_tree/resource_dir \
34 // RUN: -nobuiltininc 2>&1 | FileCheck -check-prefix=NOBUILTININC %s
35 // NOBUILTININC: "-cc1"
36 // NOBUILTININC-SAME: "-nobuiltininc"
37 // NOBUILTININC-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
38 // NOBUILTININC-SAME: "-isysroot" "[[SYSROOT:[^"]+]]"
39 // NOBUILTININC-NOT: "-internal-isystem" "[[RESOURCE_DIR]]/include"
40 // NOBUILTININC-SAME: "-internal-isystem" "[[SYSROOT]]/opt/nec/ve/include"
42 // RUN: %clang -### --target=ve --sysroot %S/Inputs/basic_ve_tree %s \
43 // RUN: -resource-dir=%S/Inputs/basic_ve_tree/resource_dir \
44 // RUN: -nostdinc 2>&1 | FileCheck -check-prefix=NOSTDINC %s
45 // NOSTDINC: "-cc1"
46 // NOSTDINC-SAME: "-nobuiltininc"
47 // NOSTDINC-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
48 // NOSTDINC-SAME: "-isysroot" "[[SYSROOT:[^"]+]]"
49 // NOSTDINC-NOT: "-internal-isystem" "[[RESOURCE_DIR]]/include"
50 // NOSTDINC-NOT: "-internal-isystem" "[[SYSROOT]]/opt/nec/ve/include"
52 ///-----------------------------------------------------------------------------
53 /// Checking -faddrsig
55 // RUN: %clang -### --target=ve %s 2>&1 | FileCheck -check-prefix=DEFADDRSIG %s
56 // DEFADDRSIG: "-cc1"
57 // DEFADDRSIG-NOT: "-faddrsig"
59 ///-----------------------------------------------------------------------------
60 /// Checking -fintegrated-as
62 // RUN: %clang -### --target=ve \
63 // RUN: -x assembler -fuse-ld=ld %s 2>&1 | \
64 // RUN: FileCheck -check-prefix=AS %s
65 // RUN: %clang -### --target=ve \
66 // RUN: -fno-integrated-as -fuse-ld=ld -x assembler %s 2>&1 | \
67 // RUN: FileCheck -check-prefix=NAS %s
69 // AS: "-cc1as"
70 // AS: nld{{.*}}
72 // NAS: nas{{.*}}
73 // NAS: nld{{.*}}
75 ///-----------------------------------------------------------------------------
76 /// Checking default behavior:
77 /// - dynamic linker
78 /// - library paths
79 /// - nld VE specific options
80 /// - sjlj exception
82 // RUN: %clang -### -no-canonical-prefixes --target=ve-unknown-linux-gnu \
83 // RUN: --sysroot %S/Inputs/basic_ve_tree \
84 // RUN: -resource-dir=%S/Inputs/basic_ve_tree/resource_dir \
85 // RUN: --unwindlib=none \
86 // RUN: -fuse-ld=ld \
87 // RUN: %s 2>&1 | FileCheck -check-prefix=DEF %s
89 // DEF: clang{{.*}}" "-cc1"
90 // DEF-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
91 // DEF-SAME: "-isysroot" "[[SYSROOT:[^"]+]]"
92 // DEF-SAME: "-exception-model=sjlj"
93 // DEF: nld"
94 // DEF-SAME: "--sysroot=[[SYSROOT]]"
95 // DEF-SAME: "-dynamic-linker" "/opt/nec/ve/lib/ld-linux-ve.so.1"
96 // DEF-SAME: "[[SYSROOT]]/opt/nec/ve/lib/crt1.o"
97 // DEF-SAME: "[[SYSROOT]]/opt/nec/ve/lib/crti.o"
98 // DEF-SAME: "-z" "max-page-size=0x4000000"
99 // DEF-SAME: "[[RESOURCE_DIR]]/lib/ve-unknown-linux-gnu/clang_rt.crtbegin.o"
100 // DEF-SAME: "[[RESOURCE_DIR]]/lib/ve-unknown-linux-gnu/libclang_rt.builtins.a" "-lc"
101 // DEF-SAME: "[[RESOURCE_DIR]]/lib/ve-unknown-linux-gnu/libclang_rt.builtins.a"
102 // DEF-SAME: "[[RESOURCE_DIR]]/lib/ve-unknown-linux-gnu/clang_rt.crtend.o"
103 // DEF-SAME: "[[SYSROOT]]/opt/nec/ve/lib/crtn.o"