2014-02-13 18:40:12 +08:00
|
|
|
// RUN: %clang -target xcore %s -g -Wl,L1Arg,L2Arg -Wa,A1Arg,A2Arg -fverbose-asm -v -### -o %t.o 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -target xcore -x c++ %s -g -Wl,L1Arg,L2Arg -Wa,A1Arg,A2Arg -fverbose-asm -v -### -o %t.o 2>&1 | FileCheck %s
|
2014-02-13 18:34:44 +08:00
|
|
|
// RUN: %clang -target xcore -x c++ %s -fexceptions -### -o %t.o 2>&1 | FileCheck -check-prefix CHECK-EXCEP %s
|
2014-05-02 17:33:25 +08:00
|
|
|
// RUN: %clang -target xcore %s -g0 -### -o %t.o 2>&1 | FileCheck -check-prefix CHECK-G0 %s
|
2013-08-13 17:43:10 +08:00
|
|
|
|
2013-10-11 18:29:40 +08:00
|
|
|
// CHECK: "-nostdsysteminc"
|
2013-08-19 17:46:32 +08:00
|
|
|
// CHECK: "-momit-leaf-frame-pointer"
|
|
|
|
// CHECK-NOT: "-mdisable-fp-elim"
|
|
|
|
// CHECK: "-fno-signed-char"
|
2013-11-12 18:09:22 +08:00
|
|
|
// CHECK: "-fno-use-cxa-atexit"
|
2014-02-13 18:34:44 +08:00
|
|
|
// CHECK-NOT: "-fcxx-exceptions"
|
|
|
|
// CHECK-NOT: "-fexceptions"
|
2013-08-19 17:46:32 +08:00
|
|
|
// CHECK: "-fno-common"
|
2014-02-16 15:29:41 +08:00
|
|
|
// CHECK: xcc" "-o"
|
2015-01-29 23:03:36 +08:00
|
|
|
// CHECK-NOT: "-fexceptions"
|
2014-02-13 18:40:12 +08:00
|
|
|
// CHECK: "-c" "-v" "-g" "-fverbose-asm" "A1Arg" "A2Arg"
|
2013-10-11 18:55:53 +08:00
|
|
|
// CHECK: xcc" "-o"
|
2015-01-29 23:03:36 +08:00
|
|
|
// CHECK-NOT: "-fexceptions"
|
2014-02-13 18:40:12 +08:00
|
|
|
// CHECK: "-v"
|
2013-11-12 18:09:22 +08:00
|
|
|
// CHECK: "L1Arg" "L2Arg"
|
2013-08-13 17:43:10 +08:00
|
|
|
|
2014-02-13 18:34:44 +08:00
|
|
|
// CHECK-EXCEP: "-fno-use-cxa-atexit"
|
|
|
|
// CHECK-EXCEP: "-fcxx-exceptions"
|
|
|
|
// CHECK-EXCEP: "-fexceptions"
|
|
|
|
// CHECK-EXCEP: "-fno-common"
|
2014-02-16 15:29:41 +08:00
|
|
|
// CHECK-EXCEP: xcc" "-o"
|
2014-02-13 18:34:44 +08:00
|
|
|
// CHECK-EXCEP-NOT: "-fexceptions"
|
|
|
|
// CHECK-EXCEP: xcc" "-o"
|
|
|
|
// CHECK-EXCEP: "-fexceptions"
|
|
|
|
|
2014-05-02 17:33:25 +08:00
|
|
|
// CHECK-G0: xcc"
|
|
|
|
// CHECK-G0-NOT: "-g"
|
|
|
|
// CHECK-G0: xcc"
|
|
|
|
|