]> granicus.if.org Git - clang/commitdiff
Testcase for PS4 target defaults (from r227215 and r227219)
authorFilipe Cabecinhas <me@filcab.net>
Wed, 28 Jan 2015 18:49:45 +0000 (18:49 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Wed, 28 Jan 2015 18:49:45 +0000 (18:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227343 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/ps4-cpu-defaults.cpp [new file with mode: 0644]

diff --git a/test/Driver/ps4-cpu-defaults.cpp b/test/Driver/ps4-cpu-defaults.cpp
new file mode 100644 (file)
index 0000000..b42ec6c
--- /dev/null
@@ -0,0 +1,7 @@
+// Check that on the PS4 we default to:
+// -target-cpu btver2, -momit-leaf-frame-pointer, and no exceptions
+
+// RUN: %clang -target x86_64-scei-ps4 -c %s -### 2>&1 | FileCheck %s
+// CHECK: "-target-cpu" "btver2"
+// CHECK: -momit-leaf-frame-pointer
+// CHECK-NOT: exceptions