Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2089230ybk; Mon, 11 May 2020 11:38:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBapcuJ1WILhFUb0gK9/LPHbSyHufAT090bc/dOxxuwQIrZ51n3gVx1D+jQjEgX2DB6ASV X-Received: by 2002:a17:906:3944:: with SMTP id g4mr3166255eje.55.1589222335083; Mon, 11 May 2020 11:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589222335; cv=none; d=google.com; s=arc-20160816; b=vEmrgHg++kIW9nJ39kJ+APj+KRwz7mdSo0Ndek4/R5RqjSlpuCaJrowVVcKTRQtqZY 03Dsru2kAc6/XSIMae3eyU03BMtPcykDpSS3m9964k3iF3Rg8wKACsWDw+4YVA0fDFUs U+GR4TRkJaExcGFGed1zJC3wgdwrcJt7Dkkf6GOty9euaCqSR06NX+I8mZ3Kg1gaet/D Z1RwkxLlh2R+XsCOVTae0J4aKl69+8yxaG+SStsiirbsOXBGuK79VlQmySIE4v+m+q9F MuOyxaEDAaQa+lBs+vT1q4CVGp8Zbvocz1hRlsKQydEbGsRRarVsYMbEj7wmRIsY0Kab Hmsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TcSOOR6oXnrgDwVzHY9DAIp9Hsd3wV34tn9evP5v+z4=; b=MXCowp/x7r10EBzetGsF6L6CYcNlNeZLRGCLO9PK9kG/r8T7hEVTwp/TdnnEyIuqNR A/CoQxjOS6sNA+aCVt62rCXy3qoh4fE0Wyjr96CdJGomE8yoPhqPA6Uq4xDUoKCUkoNP bJMZWann7aVDlEZ3zAas2A+LZw5U1VBNWx1hTQmOKkxOnq6YiNdgpr8tAfXwumOrmtYq eKIO4fibFENQH41Lr2ZYLX6nr6D4+7a+aRMoQ+/QtuGsTn5H0baoGRdceRIM5ihJLVgl lW9JP2h0eU6MRyzn1aXq/imxyOKAJvcRcgIW/9zIotJf0KOB1L1KjZzYo3lfV0I35gW+ AYKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FzSncrNX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 92si7547491edk.74.2020.05.11.11.38.32; Mon, 11 May 2020 11:38:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FzSncrNX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731132AbgEKShG (ORCPT + 99 others); Mon, 11 May 2020 14:37:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729727AbgEKShF (ORCPT ); Mon, 11 May 2020 14:37:05 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E86AC061A0C for ; Mon, 11 May 2020 11:37:05 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id v5so4296325lfp.13 for ; Mon, 11 May 2020 11:37:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TcSOOR6oXnrgDwVzHY9DAIp9Hsd3wV34tn9evP5v+z4=; b=FzSncrNXy1YB/2+RGJSqjihsohcVlNOpC4kZBoEm+OGeIfM+XGAsJTT+B1qRU92SrI aTg7H/OwWHFPVMJMOI2Cayc6Gp2iyiE6NTVs/lVQT2UAXvg5ffV9770Bfy3E4tb5RABB Nw46F7RJ7QVkgpuB6/9awhwl4q7axpOX+QCl4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TcSOOR6oXnrgDwVzHY9DAIp9Hsd3wV34tn9evP5v+z4=; b=FCBmmG9B0rPorbQc7xO095Yc6AEhB1c1LUUJAC20z1G/cJP8TCwJmp+tD1qWWb+kFW 3ef2SlYSoczB41ybFJZUXOZb51CEMtLCeYFJX6sSQHOJx9ukg/lGglDmzxhQ+2rb0jl7 o0Rd4CIS4rBmoMZtXGOBijRrO9fNKu6qNjqtW3RNfXRMzvnZ9DyFLYgWwbHPRiUE7nTA t9ougI6iDO4kwiRFtoFXWDJxRHqhBlX1ESd0Bchv+y0PFvpXVAFkngT97jCP/pZ79Ves ggHnCENI0EG0EEV+a6I2AxiZaKncTo+nJJB3pvr4T14pdAN2Mmo3IzyewHj/pwrEmFuU 8b4A== X-Gm-Message-State: AOAM533PdHXkSkbtRIsqHPwS8JaeAuQLHWrPVb/rqipHTEd1ktPtIY8/ HGL7bydVtRTnS5GHuMhbF8HHrjdJ7ow= X-Received: by 2002:ac2:5215:: with SMTP id a21mr11650442lfl.13.1589222222903; Mon, 11 May 2020 11:37:02 -0700 (PDT) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com. [209.85.208.169]) by smtp.gmail.com with ESMTPSA id x21sm10407413ljm.74.2020.05.11.11.37.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 May 2020 11:37:00 -0700 (PDT) Received: by mail-lj1-f169.google.com with SMTP id e25so10679754ljg.5 for ; Mon, 11 May 2020 11:37:00 -0700 (PDT) X-Received: by 2002:a2e:814e:: with SMTP id t14mr11004422ljg.204.1589222219867; Mon, 11 May 2020 11:36:59 -0700 (PDT) MIME-Version: 1.0 References: <20200504230309.237398-1-ndesaulniers@google.com> In-Reply-To: From: Linus Torvalds Date: Mon, 11 May 2020 11:36:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] x86: support i386 with Clang To: Nick Desaulniers Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , David Woodhouse , Arnd Bergmann , Dmitry Golovin , Dennis Zhou , Tejun Heo , Christoph Lameter , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Al Viro , Josh Poimboeuf , Masami Hiramatsu , Peter Zijlstra , LKML , clang-built-linux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 11, 2020 at 11:24 AM Linus Torvalds wrote: > > I guess I should just test it, since I have that clang tree. No, clang doesn't seem to handle it even with __builtin_choose_expr(), and has that invalid input size for constraint 'qi' even when it's in a side that is never chosen. Very annoying. A lot of our magic macros are literally about "pick one case when the others are not valid for this type". Linus