[PATCH] D29542: [TargetInfo] Adjust x86-32 atomic support to the CPU used
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 23 17:24:09 PST 2017
hans added a reviewer: jyknight.
hans added a comment.
+jyknight, who had a similar patch in http://reviews.llvm.org/D17933 (see also r291477 and PR31864)
================
Comment at: test/CodeGen/atomic-ops.c:1
-// RUN: %clang_cc1 %s -emit-llvm -o - -ffreestanding -ffake-address-space-map -triple=i686-apple-darwin9 | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -o - -ffreestanding -ffake-address-space-map -triple=i686-apple-darwin9 -target-cpu i686 | FileCheck %s
// REQUIRES: x86-registered-target
----------------
Naive question: why is the i686- part of the triple not sufficient here; why is -target-cpu needed?
https://reviews.llvm.org/D29542
More information about the cfe-commits
mailing list