From patchwork Mon Sep 23 09:25:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 1165967 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-509436-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="EiZarVzY"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46cJp86cVdz9s4Y for ; Mon, 23 Sep 2019 19:25:34 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=FfRefFsldDh5Ya/gt0c5wSKjt4kd3/6iYdkHxISzuzZwjmPYOvu9g CXOaWpa6qaWnP2rNuRzGI1KF+ebG6srt05LGe12EBY6NZOOgh38iagtfM0IctStR RY5EOLZJSbB5WD+s55rpI+q9Sdajd12XCr6fZq0cel3RieWM/caxfw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=mU7fskx6b46poa+DS6x6MEACvUI=; b=EiZarVzYgmvYyB2Ee3TK /8sttDHaaJzO1I+L7tEUJkXAZTZ9GRbY0xvCwAWIWATeIRZn4LnDama81Ruw/pks ZGk3TpKLBdh/YHm63GL286NsA/j/abJRp/HQwUG8RULMtekGzrqw+/ChbyA/AbXH 8TuVmbzeopjyECvf4GNAMj4= Received: (qmail 91667 invoked by alias); 23 Sep 2019 09:25:26 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 90560 invoked by uid 89); 23 Sep 2019 09:25:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.110.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Sep 2019 09:25:23 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CA5B11000 for ; Mon, 23 Sep 2019 02:25:21 -0700 (PDT) Received: from localhost (e121540-lin.manchester.arm.com [10.32.98.126]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 71DDF3F59C for ; Mon, 23 Sep 2019 02:25:21 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [committed][AArch64] Fix memmodel index in aarch64_store_exclusive_pair Date: Mon, 23 Sep 2019 10:25:20 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 X-IsSubscribed: yes Found via an rtl checking failure. Tested on aarch64-linux-gnu and applied as obvious (r276052). Richard 2019-09-23 Richard Sandiford gcc/ * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix memmodel index. Index: gcc/config/aarch64/atomics.md =================================================================== --- gcc/config/aarch64/atomics.md 2019-09-21 13:56:09.071933423 +0100 +++ gcc/config/aarch64/atomics.md 2019-09-23 10:22:47.361697048 +0100 @@ -752,7 +752,7 @@ (define_insn "aarch64_store_exclusive_pa UNSPECV_SX))] "" { - enum memmodel model = memmodel_from_int (INTVAL (operands[3])); + enum memmodel model = memmodel_from_int (INTVAL (operands[4])); if (is_mm_relaxed (model) || is_mm_consume (model) || is_mm_acquire (model)) return "stxp\t%w0, %x2, %x3, %1"; else