* ========== Copyright Header Begin ==========================================
* OpenSPARC T2 Processor File: lsu_cpqfill.s
* Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
* 4150 Network Circle, Santa Clara, California 95054, U.S.A.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* For the avoidance of doubt, and except that if any non-GPL license
* choice is available it will apply instead, Sun elects to use only
* the General Public License version 2 (GPLv2) at this time for any
* software where a choice of GPL license versions is made
* available with the language indicating that GPLv2 or any later version
* may be used, or where a choice of which version of the GPL is applied is
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* ========== Copyright Header End ============================================
/************************************************************************
************************************************************************/
!# Initialize registers ..
INIT_TH_FP_REG(%l7, %f0, 0x55555555aaaaaaaa)
INIT_TH_FP_REG(%l7, %f2, 0xaaaaaaaa55555555)
INIT_TH_FP_REG(%l7, %f4, 0xfedcba9876543210)
INIT_TH_FP_REG(%l7, %f6, 0x0123456789abcdef)
INIT_TH_FP_REG(%l7, %f8, 0x55aa55aaff00ff00)
INIT_TH_FP_REG(%l7, %f10, 0x1111111111111111)
INIT_TH_FP_REG(%l7, %f12, 0x8888888888888888)
INIT_TH_FP_REG(%l7, %f14, 0xfedcba9876543210)
!# Execute some ALU ops ..
fandnot1 %f14, %f14, %f14
fmul8sux16 %f0, %f14, %f6
fmovrdlez %l1, %f12, %f10
fpsub32s %f12, %f11, %f13
fmul8x16au %f1, %f3, %f12
fmuld8ulx16 %f5, %f14, %f10
fmul8sux16 %f14, %f8, %f0
faligndata %f12, %f12, %f10
fmuld8sux16 %f6, %f8, %f0
fmovspos %xcc, %f13, %f11
fmuld8ulx16 %f0, %f7, %f10
fmuld8ulx16 %f1, %f5, %f14
fmul8x16au %f10, %f9, %f4
fmuld8ulx16 %f13, %f14, %f2
fmul8x16au %f10, %f12, %f10
fmovrdlez %i2, %f14, %f14
fandnot1s %f8, %f15, %f11
fmul8x16au %f2, %f15, %f8
fmuld8sux16 %f12, %f6, %f14
fmovsleu %icc, %f14, %f15
fmul8x16au %f6, %f13, %f8
fpadd32s %f13, %f12, %f12
EXIT_GOOD /* test finish */
/************************************************************************
************************************************************************/