]> granicus.if.org Git - clang/commitdiff
Tweak this non-default test so it still works w/ x86 feature support.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 11 May 2009 23:11:21 +0000 (23:11 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 11 May 2009 23:11:21 +0000 (23:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71494 91177308-0d34-0410-b5e6-96231b3b80d8

utils/builtin-defines.c

index e8d3356277dbbe224de2808aa148b5631c5ad987..9bbe5be2502697fd1e055e05c9fd1b5ff8cbf292 100644 (file)
@@ -17,7 +17,7 @@ RUN:           else \
 RUN:             cc_prog=gcc; \
 RUN:             output=%t1; \
 RUN:           fi; \
-RUN:           $cc_prog $arch $lang $opts -dM -E -x $input %s | sort > $output; \
+RUN:           $cc_prog $arch $lang $opts -march=core2 -dM -E -x $input %s | sort > $output; \
 RUN:          done; \
 RUN:          if (! diff %t0 %t1); then exit 1; fi; \
 RUN:       done; \
@@ -36,6 +36,11 @@ RUN: done;
 #endif
 #endif
 
+/* Undefine things we don't expect to match. */
+#undef __core2
+#undef __core2__
+#undef __SSSE3__
+
 /* Undefine things we don't expect to match. */
 #undef __DEC_EVAL_METHOD__
 #undef __INT16_TYPE__