blob: 655319a13e05eb6a8725de7d18af7f28556b73f1 [file] [log] [blame]
Eli Friedmand749c6b2012-01-13 21:33:06 +00001// RUN: %clang -ccc-host-triple i386-apple-darwin10 -### -x assembler -c %s \
Bob Wilsond32fba22011-10-30 00:20:28 +00002// RUN: -no-integrated-as -static -dynamic 2>%t
Daniel Dunbar8b576972009-11-08 01:45:36 +00003// RUN: FileCheck -check-prefix=STATIC_AND_DYNAMIC-32 --input-file %t %s
Daniel Dunbar6d484762010-07-22 01:47:22 +00004//
Mike Stump8409f912009-10-08 22:25:29 +00005// CHECK-STATIC_AND_DYNAMIC-32: as{{(.exe)?}}" "-arch" "i386" "-force_cpusubtype_ALL" "-static" "-o"
Daniel Dunbara6b4a3d2009-08-24 22:26:16 +00006
Eli Friedmand749c6b2012-01-13 21:33:06 +00007// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### -x assembler -c %s \
Bob Wilsond32fba22011-10-30 00:20:28 +00008// RUN: -no-integrated-as -static 2>%t
Daniel Dunbara6b4a3d2009-08-24 22:26:16 +00009// RUN: FileCheck -check-prefix=STATIC-64 --input-file %t %s
Daniel Dunbar6d484762010-07-22 01:47:22 +000010//
Mike Stump8409f912009-10-08 22:25:29 +000011// CHECK-STATIC-64: as{{(.exe)?}}" "-arch" "x86_64" "-force_cpusubtype_ALL" "-o"
Daniel Dunbara6b4a3d2009-08-24 22:26:16 +000012
Eli Friedmand749c6b2012-01-13 21:33:06 +000013// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### \
Daniel Dunbar6d484762010-07-22 01:47:22 +000014// RUN: -arch armv6 -x assembler -c %s 2>%t
15// RUN: FileCheck -check-prefix=ARMV6 --input-file %t %s
16//
17// CHECK-ARMV6: as{{(.exe)?}}" "-arch" "armv6" "-o"