/llvm-project/clang/test/Driver/ |
H A D | fdefine-target-os-macros.c | 1 // RUN: %clang -### --target=arm64-apple-darwin %s 2>&1 | FileCheck %s --check-prefix=DARWIN-DEFAULT 4 // RUN: %clang -### --target=arm-none-linux-gnu %s 2>&1 | FileCheck %s --check-prefix=NON-DARWIN-DE… 5 // RUN: %clang -### --target=x86_64-pc-win32 %s 2>&1 | FileCheck %s --check-prefix=NON-DARWIN-DEFAU… 8 // RUN: %clang -dM -E --target=arm64-apple-macos %s 2>&1 \ 9 // RUN: | FileCheck %s -DMAC=1 \ 10 // RUN: -DOSX=1 \ 11 // RUN: -DIPHONE=0 \ 12 // RUN: -DIOS=0 \ 13 // RUN: -DTV=0 \ 14 // RUN: -DWATCH=0 \ [all …]
|
H A D | riscv-fixed-x-register.c | 1 // RUN: %clang --target=riscv32 -ffixed-x1 -### %s 2> %t 2 // RUN: FileCheck --check-prefix=CHECK-FIXED-X1 < %t %s 3 // RUN: %clang --target=riscv64 -ffixed-x1 -### %s 2> %t 4 // RUN: FileCheck --check-prefix=CHECK-FIXED-X1 < %t %s 7 // RUN: %clang --target=riscv32 -ffixed-x2 -### %s 2> %t 8 // RUN: FileCheck --check-prefix=CHECK-FIXED-X2 < %t %s 9 // RUN: %clang --target=riscv64 -ffixed-x2 -### %s 2> %t 10 // RUN: FileCheck --check-prefix=CHECK-FIXED-X2 < %t %s 13 // RUN: %clang --target=riscv32 -ffixed-x3 -### %s 2> %t 14 // RUN: FileCheck --check-prefix=CHECK-FIXED-X3 < %t %s [all …]
|
H A D | gfortran.f90 | 6 ! RUN: %clang --target=i386-linux -### %s 2>&1 \ 7 ! RUN: -Aquestion=answer \ 8 ! RUN: -A-question=answer \ 9 ! RUN: -C \ 10 ! RUN: -CC \ 11 ! RUN: -Dmacro \ 12 ! RUN: -Dmacro=value \ 13 ! RUN: -H \ 14 ! RUN: -Isome/directory \ 15 ! RUN: -Jsome/other/directory \ [all …]
|
H A D | visibility-dllstorageclass.c | 3 // RUN: %clang -target x86_64-unknown-windows-itanium -fdeclspec \ 4 // RUN: -Werror -S -### %s 2>&1 | \ 5 // RUN: FileCheck %s \ 6 // RUN: --implicit-check-not=-fvisibility-from-dllstorageclass \ 7 // RUN: --implicit-check-not=-fvisibility-dllexport \ 8 // RUN: --implicit-check-not=-fvisibility-nodllstorageclass \ 9 // RUN: --implicit-check-not=-fvisibility-externs-dllimport \ 10 // RUN: --implicit-check-not=-fvisibility-externs-nodllstorageclass 12 // RUN: %clang -target x86_64-unknown-windows-itanium -fdeclspec \ 13 // RUN: -fvisibility-from-dllstorageclass \ [all …]
|
H A D | aarch64-fixed-x-register.c | 1 // RUN: %clang --target=aarch64-none-gnu -ffixed-x1 -### %s 2> %t 2 // RUN: FileCheck --check-prefix=CHECK-FIXED-X1 < %t %s 5 // RUN: %clang --target=aarch64-none-gnu -ffixed-x2 -### %s 2> %t 6 // RUN: FileCheck --check-prefix=CHECK-FIXED-X2 < %t %s 9 // RUN: %clang --target=aarch64-none-gnu -ffixed-x3 -### %s 2> %t 10 // RUN: FileCheck --check-prefix=CHECK-FIXED-X3 < %t %s 13 // RUN: %clang --target=aarch64-none-gnu -ffixed-x4 -### %s 2> %t 14 // RUN: FileCheck --check-prefix=CHECK-FIXED-X4 < %t %s 17 // RUN: %clang --target=aarch64-none-gnu -ffixed-x5 -### %s 2> %t 18 // RUN: FileCheck --check-prefix=CHECK-FIXED-X5 < %t %s [all …]
|
H A D | sparc-fixed-register.c | 1 // RUN: %clang --target=sparc-none-gnu -ffixed-g1 -### %s 2> %t 2 // RUN: FileCheck --check-prefix=CHECK-FIXED-G1 < %t %s 5 // RUN: %clang --target=sparc-none-gnu -ffixed-g2 -### %s 2> %t 6 // RUN: FileCheck --check-prefix=CHECK-FIXED-G2 < %t %s 9 // RUN: %clang --target=sparc-none-gnu -ffixed-g3 -### %s 2> %t 10 // RUN: FileCheck --check-prefix=CHECK-FIXED-G3 < %t %s 13 // RUN: %clang --target=sparc-none-gnu -ffixed-g4 -### %s 2> %t 14 // RUN: FileCheck --check-prefix=CHECK-FIXED-G4 < %t %s 17 // RUN: %clang --target=sparc-none-gnu -ffixed-g5 -### %s 2> %t 18 // RUN: FileCheck --check-prefix=CHECK-FIXED-G5 < %t %s [all …]
|
H A D | cl-options.c | 7 // RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=c %s 10 // RUN: not %clang_cl /C -### -- %s 2>&1 | FileCheck -check-prefix=C %s 13 // RUN: %clang_cl /C /P -### -- %s 2>&1 | FileCheck -check-prefix=C_P %s 17 // RUN: %clang_cl /d1reportAllClassLayout -### /c /WX -- %s 2>&1 | \ 18 // RUN: FileCheck -check-prefix=d1reportAllClassLayout %s 23 // RUN: %clang_cl /Dfoo=bar /D bar=baz /DMYDEF#value /DMYDEF2=foo#bar /DMYDEF3#a=b /DMYDEF4# \ 24 // RUN: -### -- %s 2>&1 | FileCheck -check-prefix=D %s 32 // RUN: %clang_cl /E -### -- %s 2>&1 | FileCheck -check-prefix=E %s 36 // RUN: %clang_cl /EP -### -- %s 2>&1 | FileCheck -check-prefix=EP %s 41 // RUN [all...] |
H A D | darwin-header-search-system.cpp | 9 // RUN: %clang -### %s -fsyntax-only 2>&1 \ 10 // RUN: --target=x86_64-apple-darwin \ 11 // RUN: -ccc-install-dir %S/Inputs/basic_darwin_toolchain_no_libcxx/usr/bin \ 12 // RUN: -resource-dir=%S/Inputs/resource_dir \ 13 // RUN: -isysroot %S/Inputs/basic_darwin_sdk_usr_and_usr_local \ 14 // RUN: | FileCheck -DSYSROOT=%S/Inputs/basic_darwin_sdk_usr_and_usr_local \ 15 // RUN: -DRESOURCE=%S/Inputs/resource_dir \ 16 // RUN: --check-prefix=CHECK-SYSTEM %s 18 // RUN: %clang -### %s -fsyntax-only 2>&1 \ 19 // RUN: --target=x86_64-apple-darwin \ [all …]
|
H A D | aix-toolchain-include.cpp | 4 // RUN: %clangxx -### %s 2>&1 \ 5 // RUN: --target=powerpc-ibm-aix \ 6 // RUN: -resource-dir=%S/Inputs/resource_dir \ 7 // RUN: --sysroot=%S/Inputs/basic_aix_tree \ 8 // RUN: -fopenmp=libomp \ 9 // RUN: | FileCheck -check-prefixes=CHECK-INTERNAL-INCLUDE,CHECK-INTERNAL-INCLUDE-CXX %s 11 // RUN: %clangxx -### %s 2>&1 \ 12 // RUN: --target=powerpc64-ibm-aix \ 13 // RUN: -resource-dir=%S/Inputs/resource_dir \ 14 // RUN: --sysroot=%S/Inputs/basic_aix_tree \ [all …]
|
H A D | sparc-as.c | 3 // RUN: %clang --target=sparc-linux -### -c %s 2>&1 \ 4 // RUN: | FileCheck -check-prefix=IAS %s 6 // RUN: %clang --target=sparc-linux -fintegrated-as -### -c %s 2>&1 \ 7 // RUN: | FileCheck -check-prefix=IAS %s 9 // RUN: %clang --target=sparc-linux -fno-integrated-as -### -c %s 2>&1 \ 10 // RUN: | FileCheck -check-prefix=NO-IAS %s 15 // RUN: %clang --target=sparc--netbsd \ 16 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree -### %s 2>&1 \ 17 // RUN: | FileCheck -check-prefix=SPARC %s 19 // RUN: %clang -mcpu=v8 --target=sparc--netbsd \ [all …]
|
H A D | darwin-header-search-libcxx.cpp | 9 // RUN: %clang -### %s -fsyntax-only 2>&1 \ 10 // RUN: --target=x86_64-apple-darwin \ 11 // RUN: -stdlib=libc++ \ 12 // RUN: -ccc-install-dir %S/Inputs/basic_darwin_toolchain_no_libcxx/usr/bin \ 13 // RUN: | FileCheck --check-prefix=CHECK-LIBCXX-NONE %s 18 // RUN: %clang -### %s -fsyntax-only 2>&1 \ 19 // RUN: --target=x86_64-apple-darwin \ 20 // RUN: -stdlib=libc++ \ 21 // RUN: -ccc-install-dir %S/Inputs/basic_darwin_toolchain/usr/bin \ 22 // RUN: --sysroot="" \ [all …]
|
H A D | debug-options.c | 4 // RUN: %clang -### -c -g %s -target x86_64-linux-gnu 2>&1 \ 5 // RUN: | FileCheck -check-prefix=G_LIMITED -check-prefix=G_GDB %s 6 // RUN: %clang -### -c -g2 %s -target x86_64-linux-gnu 2>&1 \ 7 // RUN: | FileCheck -check-prefix=G_LIMITED -check-prefix=G_GDB %s 8 // RUN: %clang -### -c -g3 %s -target x86_64-linux-gnu 2>&1 \ 9 // RUN: | FileCheck -check-prefix=G_LIMITED -check-prefix=G_GDB %s 10 // RUN: %clang -### -c -ggdb %s -target x86_64-linux-gnu 2>&1 \ 11 // RUN: | FileCheck -check-prefix=G_LIMITED -check-prefix=G_GDB %s 12 // RUN: %clang -### -c -ggdb1 %s -target x86_64-linux-gnu 2>&1 \ 13 // RUN [all...] |
H A D | pic.c | 53 // RUN: %clang -c %s -target i386-unknown-unknown -### 2>&1 \ 54 // RUN: | FileCheck %s --check-prefix=CHECK-NO-PIC 55 // RUN: %clang -c %s -target i386-unknown-unknown -fpic -### 2>&1 \ 56 // RUN: | FileCheck %s --check-prefix=CHECK-PIC1 57 // RUN: %clang -c %s -target i386-unknown-unknown -fPIC -### 2>&1 \ 58 // RUN: | FileCheck %s --check-prefix=CHECK-PIC2 59 // RUN: %clang -c %s -target i386-unknown-unknown -fpie -### 2>&1 \ 60 // RUN: | FileCheck %s --check-prefix=CHECK-PIE1 61 // RUN: %clang -c %s -target i386-unknown-unknown -fPIE -### 2>&1 \ 62 // RUN: | FileCheck %s --check-prefix=CHECK-PIE2 [all …]
|
H A D | range.c | 3 // RUN: %clang -### -target x86_64 -fcx-limited-range -c %s 2>&1 \ 4 // RUN: | FileCheck --check-prefix=BASIC %s 6 // RUN: %clang -### -target x86_64 -fno-cx-limited-range -c %s 2>&1 \ 7 // RUN: | FileCheck --check-prefix=FULL %s 9 // RUN: %clang -### -target x86_64 -fcx-limited-range -fcx-fortran-rules \ 10 // RUN: -c %s 2>&1 | FileCheck --check-prefix=WARN1 %s 12 // RUN: %clang -### -target x86_64 -fno-cx-limited-range -fcx-fortran-rules \ 13 // RUN: -c %s 2>&1 | FileCheck --check-prefix=WARN2 %s 15 // RUN: %clang -### -target x86_64 -fcx-limited-range -fno-cx-limited-range \ 16 // RUN: -c %s 2>&1 | FileCheck --check-prefix=FULL %s [all …]
|
/llvm-project/clang/test/Analysis/ |
H A D | a_flaky_crash.cpp | 2 // Even with the current set of run-lines, if a buildbot tells you 20 // 256 copies of the same run-line to make it crash more often when it breaks. 22 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s 23 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s 24 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s 25 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s 26 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s 27 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s 28 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s 29 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s [all …]
|
/llvm-project/clang/test/Preprocessor/ |
H A D | riscv-target-features.c | 1 // RUN: %clang --target=riscv32-unknown-linux-gnu -march=rv32i -E -dM %s \ 2 // RUN: -o - | FileCheck %s 3 // RUN: %clang --target=riscv64-unknown-linux-gnu -march=rv64i -E -dM %s \ 4 // RUN: -o - | FileCheck %s 204 // RUN: %clang --target=riscv32-unknown-linux-gnu \ 205 // RUN: -march=rv32ia -E -dM %s \ 206 // RUN: -o - | FileCheck --check-prefix=CHECK-A-EXT %s 207 // RUN: %clang --target=riscv64-unknown-linux-gnu \ 208 // RUN: -march=rv64ia -E -dM %s \ 209 // RUN [all...] |
H A D | predefined-macros-no-warnings.c | 5 // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple arc 6 // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple xcore 7 // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple hexagon 8 // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple hexagon-linux 9 // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple lanai 10 // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple aarch64_32-darwin 11 // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple aarch64 12 // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple aarch64-darwin 13 // RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple aarch64-freebsd 14 // RUN [all...] |
/llvm-project/offload/test/jit/ |
H A D | empty_kernel_lvl2.c | 2 // RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \ 3 // RUN: -DTGT1_DIRECTIVE="target" \ 4 // RUN: -DLOOP_DIRECTIVE="for" 5 // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \ 6 // RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \ 7 // RUN: %libomptarget-run-generic 8 // RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST 9 // RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \ 10 // RUN: -DTGT1_DIRECTIVE="target" \ 11 // RUN: -DTGT2_DIRECTIVE="target" \ [all …]
|
/llvm-project/clang/test/Modules/ |
H A D | stress1.cpp | 1 // RUN: rm -rf %t 2 // RUN: cd %S 4 // RUN: %clang_cc1 -fmodules -x c++ -std=c++11 \ 5 // RUN: -I Inputs/stress1 \ 6 // RUN: -fno-implicit-modules \ 7 // RUN: -fmodules-cache-path=%t \ 8 // RUN: -fmodule-map-file-home-is-cwd \ 9 // RUN: -emit-module -fmodule-name=m00 -o %t/m00.pcm \ 10 // RUN: Inputs/stress1/module.modulemap 12 // RUN: %clang_cc1 -fmodules -x c++ -std=c++11 \ [all …]
|
/llvm-project/llvm/test/tools/llvm-readobj/ELF/ |
H A D | file-header-machine-types.test | 3 # RUN: yaml2obj %s -o %t.none.o -D MACHINE=EM_NONE 4 # RUN: llvm-readelf --file-headers %t.none.o | FileCheck %s -DMACHINE="None" 6 # RUN: yaml2obj %s -o %t.m32.o -D MACHINE=EM_M32 7 # RUN: llvm-readelf --file-headers %t.m32.o | FileCheck %s -DMACHINE="WE32100" 9 # RUN: yaml2obj %s -o %t.sparc.o -D MACHINE=EM_SPARC 10 # RUN: llvm-readelf --file-headers %t.sparc.o | FileCheck %s -DMACHINE="Sparc" 12 # RUN: yaml2obj %s -o %t.386.o -D MACHINE=EM_386 13 # RUN: llvm-readelf --file-headers %t.386.o | FileCheck %s -DMACHINE="Intel 80386" 15 # RUN: yaml2obj %s -o %t.68k.o -D MACHINE=EM_68K 16 # RUN: llvm-readelf --file-headers %t.68k.o | FileCheck %s -DMACHINE="MC68000" [all …]
|
/llvm-project/compiler-rt/test/cfi/ |
H A D | bad-cast.cpp | 1 // RUN: %clangxx_cfi -o %t1 %s 2 // RUN: %expect_crash %run %t1 a 2>&1 | FileCheck --check-prefix=FAIL %s 3 // RUN: %expect_crash %run %t1 b 2>&1 | FileCheck --check-prefix=FAIL %s 4 // RUN: %expect_crash %run %t1 c 2>&1 | FileCheck --check-prefix=FAIL %s 5 // RUN: %run %t1 d 2>&1 | FileCheck --check-prefix=PASS %s 6 // RUN: %run %t1 e 2>&1 | FileCheck --check-prefix=PASS %s 7 // RUN: %run %t1 f 2>&1 | FileCheck --check-prefix=PASS %s 8 // RUN: %expect_crash %run %t1 g 2>&1 | FileCheck --check-prefix=FAIL %s 9 // RUN: %run %t1 h 2>&1 | FileCheck --check-prefix=PASS %s 11 // RUN: %clangxx_cfi -DB32 -o %t2 %s [all …]
|
/llvm-project/llvm/utils/lit/tests/ |
H A D | shtest-define.py | 3 # RUN: echo '-- Available Tests --' > %t.tests.actual.txt 11 # DEFINE: %{run-test} = \ 17 # DEFINE: %{run-and-record-test} = %{run-test} && %{record-test} 22 # RUN: %{run-and-record-test} 24 # RUN: %{run-and-record-test} 26 # RUN: %{run-and-record-test} 28 # RUN: %{run-and-record-test} 30 # RUN: %{run-and-record-test} 32 # RUN: %{run-and-record-test} 34 # RUN: %{run-and-record-test} [all …]
|
/llvm-project/llvm/test/tools/llvm-ar/ |
H A D | option-X.test | 5 # RUN: rm -rf %t && mkdir %t && cd %t 6 # RUN: unset OBJECT_MODE 7 # RUN: yaml2obj --docnum=1 -DCLASS=ELFCLASS32 %s -o elf32.o 8 # RUN: yaml2obj --docnum=1 -DCLASS=ELFCLASS64 %s -o elf64.o 10 # RUN: yaml2obj --docnum=2 -DFLAG=0x1DF %s -o xcoff32.o 11 # RUN: yaml2obj --docnum=2 -DFLAG=0x1F7 %s -o xcoff64.o 14 # RUN: llvm-ar -q -c archive-default.a xcoff32.o elf32.o xcoff64.o elf64.o 2>&1 | \ 15 # RUN: FileCheck %s --check-prefixes=WARN-XCOFF64,WARN-ELF64 16 # RUN: llvm-ar -t -Xany archive-default.a | \ 17 # RUN: FileCheck %s --check-prefixes=OBJ32 [all …]
|
/llvm-project/llvm/test/ThinLTO/X86/ |
H A D | selective-save-temps.ll | 5 ; RUN: rm -rf %t && mkdir %t && cd %t 8 ; RUN: opt -thinlto-bc %s -o 1.bc 9 ; RUN: opt -thinlto-bc %p/Inputs/import-constant.ll -o 2.bc 13 ; RUN: mkdir all all2 build subset subset2 14 ; RUN: llvm-lto2 run 1.bc 2.bc -o all/a.out \ 15 ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ 16 ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ 17 ; RUN: -save-temps 21 ;; Run lto and generate files 30 ; RUN: llvm-lto2 run 1.bc 2.bc -o build/a.out \ [all …]
|
H A D | cache.ll | 8 ; RUN: opt -module-summary %s -o %t.bc 9 ; RUN: opt -module-summary %p/Inputs/cache.ll -o %t2.bc 12 ; RUN: rm -Rf %t.cache.noindex && mkdir %t.cache.noindex 13 ; RUN: llvm-lto -thinlto-action=run -exported-symbol=globalfunc %t2.bc %t.bc -thinlto-cache-dir %t.… 14 ; RUN: ls %t.cache.noindex/llvmcache.timestamp 15 ; RUN: ls %t.cache.noindex | count 1 18 ; RUN: rm -Rf %t.cache.noindex 19 ; RUN: llvm-lto2 run -o %t.o %t2.bc %t.bc -cache-dir %t.cache.noindex \ 20 ; RUN: -r=%t2.bc,_main,plx \ 21 ; RUN: -r=%t2.bc,_globalfunc,lx \ [all …]
|