blob: 96259c25a3bb025a2e947646c159a8876bbbee63 [file] [log] [blame]
Sebastian Pop422377c2012-01-20 22:01:23 +00001// RUN: %clang -target 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
Sebastian Pop422377c2012-01-20 22:01:23 +00007// RUN: %clang -target 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
Sebastian Pop422377c2012-01-20 22:01:23 +000013// RUN: %clang -target 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"