From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from BAY004-OMC3S2.hotmail.com (bay004-omc3s2.hotmail.com [65.54.190.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9683E80369 for ; Wed, 8 Mar 2017 07:09:38 -0800 (PST) Received: from NAM01-BN3-obe.outbound.protection.outlook.com ([65.54.190.188]) by BAY004-OMC3S2.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 8 Mar 2017 07:09:38 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=u4DQuQv08CKIDwrMpsr2SUnXFZ5BqAnyB7IPhwQNMIM=; b=BmElmW57bImxKg64BFOBjsTBSN8JsEyv06wMmVAvMa966LKCJr+Hjjr0blr63P6QfZtrCsOBOIkEuIRNbOp2ThyZ2rUlYafBAks/4lUT5LpO1SI9HI2i5kZZyhwHUKrZFrpN4vefHiw8fu2aw2UXjYU/4+vBYnKZB0Jcpok8LdRDGiRHAhbWWo4uiDxH3Fr/ulf3j20loqNFF+eoQfBcrOs0LpMBnDKt+Hyvlt+1PNzJtK34k7MZYhhEVdN5RWx7iIyanD5mmtQpMV/7Y4HN1JjJ48HG7unbnuj+Wf6ZodvaQlNt29wZV7hqDgtwuQhxv9r/thsqMdckIbCxsP6YxA== Received: from BN3NAM01FT027.eop-nam01.prod.protection.outlook.com (10.152.66.54) by BN3NAM01HT140.eop-nam01.prod.protection.outlook.com (10.152.67.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7; Wed, 8 Mar 2017 15:09:37 +0000 Received: from BN6PR11MB1811.namprd11.prod.outlook.com (10.152.66.55) by BN3NAM01FT027.mail.protection.outlook.com (10.152.67.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7 via Frontend Transport; Wed, 8 Mar 2017 15:09:37 +0000 Received: from BN6PR11MB1811.namprd11.prod.outlook.com ([10.175.99.139]) by BN6PR11MB1811.namprd11.prod.outlook.com ([10.175.99.139]) with mapi id 15.01.0947.020; Wed, 8 Mar 2017 15:09:37 +0000 From: Amit kumar To: "edk2-devel@lists.01.org" Thread-Topic: [edk2] SIMD Instruction supported in UEFI? Thread-Index: AQHSmBw9M0948BtO1kiMYhV1jtG5Hw== Date: Wed, 8 Mar 2017 15:09:37 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:E97D8B6FFC154A6E93DCC2FA354EE9ED526115DE08D2915995FA76678D519DA3; UpperCasedChecksum:BF72BB53F72D633F7A15291D44E5DA1BF86A1B07A486B73B5F30656D55B91C4A; SizeAsReceived:7603; Count:37 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [PbuA9AOqILhqne8mwS27G0D9x3jUX3Ow] x-incomingheadercount: 37 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; BN3NAM01HT140; 5:fudO9l9tkOyB6vHLBYhfUX4u0lgKEhXiYwdZBPhuxsLvdZFMvcFC9aVopofvbSOoYv+LmowI96qoe0ER+GtG67zZajX/wYglkuvAVS/RqUoH/sgPK9VDM6zgKCmAXSsXf0RzBdFbYUeqJnvuG+nVk4wz0VWlElnDwl4RdMElgDA=; 24:AqXxZuZM8zZO7h/VWwMo0AUVzCmr2BsafOMIcpscCWqrJ3/FUT13IN48fKjllSg8j8sIhAJOau2iGAvs42FttXOkmn3nSfOFgs0bdlXj46g=; 7:gVHlqveCF+66ShvMlfe6OER89djKA4v2Dqvxx9AjlcY4xcLHpIKRmytdHHcYoQ299lAnk+K2fsQZ41qPm1n5PNEnfYcNry6JhZ+bhhLFQ45KT8sGQKHrmrlDZSW64A1hiLayILhR/Rb6hxUlE5oVcwwbvaYaPj58lpj1P0TBM0+LCf1Rmlx74I73kgZQ3af0qErZZoR6Fmnr7l3N53Eq/G+zkiks2F6tlT+21Zq+0R0ZDXUEjzjb0RUNjCg6JLEojDvHPPHzZhgdgEqkhV/SfkUVHBGxUB0QzGFMoRVp+W2ARnZjI039WbzQWY8+fRA4 x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3NAM01HT140; H:BN6PR11MB1811.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 7bc3a38d-fc0c-469a-7f10-08d4663522f0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045); SRVR:BN3NAM01HT140; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015087)(444000031); SRVR:BN3NAM01HT140; BCL:0; PCL:0; RULEID:; SRVR:BN3NAM01HT140; x-forefront-prvs: 02408926C4 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2017 15:09:37.1068 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM01HT140 X-OriginalArrivalTime: 08 Mar 2017 15:09:38.0340 (UTC) FILETIME=[012E0640:01D2981E] Subject: SIMD Instruction supported in UEFI? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2017 15:09:38 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi ; I have written a UEFI app in ASM which runs XOR on a block of data using SI= MD instructions ("PXOR") in UEFI environment. It takes around 2 Seconds to run this code, but when i use normal C XOR ope= rator ("^") it takes 1 Seconds. Is there something wrong ? I mean SIMD instructions must be giving me bette= r performance(my expectation); But when i do same experiment in Windows environment SIMD code ( _mm_xor_si= 128 ) gives me 9 times better performance than normal XOR instruction. = =20 Have i missed something?. Regards Amit Kumar=