From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932093AbcCGSHj (ORCPT ); Mon, 7 Mar 2016 13:07:39 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:41020 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753213AbcCGSHf (ORCPT ); Mon, 7 Mar 2016 13:07:35 -0500 Date: Mon, 7 Mar 2016 13:07:33 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: David Laight cc: "'sedat.dilek@gmail.com'" , Jiri Kosina , Steven Rostedt , Tejun Heo , Lai Jiangshan , Benjamin Tissoires , Paul McKenney , Andy Lutomirski , LKML , USB list , Greg Kroah-Hartman , Peter Zijlstra , Ingo Molnar Subject: RE: [PATCH] usbhid: Fix lockdep unannotated irqs-off warning In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6D41116CA6@AcuExch.aculab.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Mar 2016, David Laight wrote: > From: Sedat Dilek > ... > > Did someone look at the next/follow-ups in this thread? > > For example: D6629 "x86: Emit LAHF/SAHF instead of PUSHF/POPF" [2]? > > LAHF and SAHF come with the following note: > > This instruction executes as described above in compatibility mode and legacy mode. > It is valid in 64-bit mode only if CPUID.80000001H:ECX.LAHF-SAHF[bit 0] = 1. > > So I suspect they can't be used. Of course, there are other ways to save a single flag value (such as setz). It's up to the compiler developers to decide what they think is best. Alan Stern