// Ensure that '-target shave' picks a different compiler. // Also check that '-I' is turned into '-i:' for the assembler. // Note that since we don't know where movi tools are installed, // the driver may or may not find a full path to them. // That is, the 0th argument will be "/path/to/my/moviCompile" // or just "moviCompile" depending on whether moviCompile is found. // As such, we test only for a trailing quote in its rendering. // The same goes for "moviAsm". // RUN: %clang -target shave -c -### %s -Icommon 2>&1 \ // RUN: | FileCheck %s -check-prefix=MOVICOMPILE // MOVICOMPILE: moviCompile" "-DMYRIAD2" "-mcpu=myriad2" "-S" "-I" "common" // MOVICOMPILE: moviAsm" "-no6thSlotCompression" "-cv:myriad2" "-noSPrefixing" "-a" "-i:common" "-elf" // RUN: %clang -target shave -c -### %s -DEFINE_ME -UNDEFINE_ME 2>&1 \ // RUN: | FileCheck %s -check-prefix=DEFINES // DEFINES: "-D" "EFINE_ME" "-U" "NDEFINE_ME" // RUN: %clang -target shave -c -### %s -Icommon -iquote quotepath -isystem syspath 2>&1 \ // RUN: | FileCheck %s -check-prefix=INCLUDES // INCLUDES: "-iquote" "quotepath" "-isystem" "syspath" // RUN: %clang -target shave -c -### %s -g -fno-inline-functions \ // RUN: -fno-inline-functions-called-once -Os -Wall \ // RUN: -ffunction-sections 2>&1 | FileCheck %s -check-prefix=F_G_O_W_OPTIONS // F_G_O_W_OPTIONS: "-g" "-fno-inline-functions" "-fno-inline-functions-called-once" // F_G_O_W_OPTIONS: "-Os" "-Wall" "-ffunction-sections"