]> granicus.if.org Git - clang/commitdiff
Test for x86 target features, I forgot to commit this.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 11 May 2009 23:06:15 +0000 (23:06 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 11 May 2009 23:06:15 +0000 (23:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71492 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/x86_features.c [new file with mode: 0644]

diff --git a/test/Driver/x86_features.c b/test/Driver/x86_features.c
new file mode 100644 (file)
index 0000000..efb3681
--- /dev/null
@@ -0,0 +1,3 @@
+// RUN: clang -ccc-host-triple i386-unknown-unknown -### -S %s -msse -msse4 -mno-sse -mno-mmx -msse 2> %t &&
+// RUN: grep '"-target-feature" "+sse" "-target-feature" "+sse4" "-target-feature" "-sse" "-target-feature" "-mmx" "-target-feature" "+sse"' %t
+