220N/A! Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
220N/A! DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
220N/A! This code is free software; you can redistribute it
and/or modify it
220N/A! under the terms of the GNU General Public License version 2 only, as
220N/A! published by the Free Software Foundation. Oracle designates this
220N/A! particular file as subject to the "Classpath" exception as provided
220N/A! by Oracle in the LICENSE file that accompanied this code.
220N/A! This code is distributed in the hope that it will be useful, but WITHOUT
220N/A! ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
220N/A! FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
220N/A! version 2 for more details (a copy is included in the LICENSE file that
220N/A! accompanied this code).
220N/A! You should have received a copy of the GNU General Public License version
220N/A! 2 along with this work; if not, write to the Free Software Foundation,
220N/A! Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
220N/A! Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
220N/A! This file contains inline procedures for VIS instructions in 32-bit mode.
220N/A!--------------------------------------------------------------------
220N/A! Pure edge handling instructions
220N/A! int vis_edge8(void */*frs1*/, void */*frs2*/);
! int vis_edge8l(void */*frs1*/, void */*frs2*/);
! int vis_edge16(void */*frs1*/, void */*frs2*/);
! int vis_edge16l(void */*frs1*/, void */*frs2*/);
! int vis_edge32(void */*frs1*/, void */*frs2*/);
! int vis_edge32l(void */*frs1*/, void */*frs2*/);
!--------------------------------------------------------------------
! Edge handling instructions with negative return values if cc set
! int vis_edge8cc(void */*frs1*/, void */*frs2*/);
! int vis_edge8lcc(void */*frs1*/, void */*frs2*/);
! int vis_edge16cc(void */*frs1*/, void */*frs2*/);
! int vis_edge16lcc(void */*frs1*/, void */*frs2*/);
! int vis_edge32cc(void */*frs1*/, void */*frs2*/);
! int vis_edge32lcc(void */*frs1*/, void */*frs2*/);
!--------------------------------------------------------------------
! void *vis_alignaddr(void */*rs1*/, int /*rs2*/);
! void *vis_alignaddrl(void */*rs1*/, int /*rs2*/);
! double vis_faligndata(double /*frs1*/, double /*frs2*/);
.inline vis_faligndata,16
!--------------------------------------------------------------------
! Partitioned comparison instructions
! int vis_fcmple16(double /*frs1*/, double /*frs2*/);
! int vis_fcmpne16(double /*frs1*/, double /*frs2*/);
! int vis_fcmple32(double /*frs1*/, double /*frs2*/);
! int vis_fcmpne32(double /*frs1*/, double /*frs2*/);
! int vis_fcmpgt16(double /*frs1*/, double /*frs2*/);
! int vis_fcmpeq16(double /*frs1*/, double /*frs2*/);
! int vis_fcmpgt32(double /*frs1*/, double /*frs2*/);
! int vis_fcmpeq32(double /*frs1*/, double /*frs2*/);
!--------------------------------------------------------------------
! double vis_fmul8x16(float /*frs1*/, double /*frs2*/);
! double vis_fmul8x16_dummy(float /*frs1*/, int /*dummy*/, double /*frs2*/);
.inline vis_fmul8x16_dummy,16
! double vis_fmul8x16au(float /*frs1*/, float /*frs2*/);
! double vis_fmul8x16al(float /*frs1*/, float /*frs2*/);
! double vis_fmul8sux16(double /*frs1*/, double /*frs2*/);
.inline vis_fmul8sux16,16
! double vis_fmul8ulx16(double /*frs1*/, double /*frs2*/);
.inline vis_fmul8ulx16,16
! double vis_fmuld8sux16(float /*frs1*/, float /*frs2*/);
.inline vis_fmuld8sux16,8
! double vis_fmuld8ulx16(float /*frs1*/, float /*frs2*/);
.inline vis_fmuld8ulx16,8
! double vis_fpadd16(double /*frs1*/, double /*frs2*/);
! float vis_fpadd16s(float /*frs1*/, float /*frs2*/);
! double vis_fpadd32(double /*frs1*/, double /*frs2*/);
! float vis_fpadd32s(float /*frs1*/, float /*frs2*/);
! double vis_fpsub16(double /*frs1*/, double /*frs2*/);
! float vis_fpsub16s(float /*frs1*/, float /*frs2*/);
! double vis_fpsub32(double /*frs1*/, double /*frs2*/);
! float vis_fpsub32s(float /*frs1*/, float /*frs2*/);
!--------------------------------------------------------------------
! float vis_fpack16(double /*frs2*/);
! double vis_fpack32(double /*frs1*/, double /*frs2*/);
! float vis_fpackfix(double /*frs2*/);
! double vis_fpack16_pair(double /*frs2*/, double /*frs2*/);
.inline vis_fpack16_pair,16
! double vis_fpackfix_pair(double /*frs2*/, double /*frs2*/);
.inline vis_fpackfix_pair,16
! void vis_st2_fpack16(double, double, double *);
.inline vis_st2_fpack16,20
! void vis_std_fpack16(double, double, double *);
.inline vis_std_fpack16,20
! void vis_st2_fpackfix(double, double, double *);
.inline vis_st2_fpackfix,20
! double vis_fpack16_to_hi(double /*frs1*/, double /*frs2*/);
.inline vis_fpack16_to_hi,16
! double vis_fpack16_to_lo(double /*frs1*/, double /*frs2*/);
.inline vis_fpack16_to_lo,16
fmovs %f3,%f1 /* without this, optimizer goes wrong */
!--------------------------------------------------------------------
! double vis_pdist(double /*frs1*/, double /*frs2*/, double /*frd*/);
!--------------------------------------------------------------------
! double vis_fpmerge(float /*frs1*/, float /*frs2*/);
!--------------------------------------------------------------------
! double vis_fexpand(float /*frs2*/);
! double vis_fexpand_hi(double /*frs2*/);
! double vis_fexpand_lo(double /*frs2*/);
!--------------------------------------------------------------------
! Bitwise logical operations
! double vis_fnor(double /*frs1*/, double /*frs2*/);
! float vis_fnors(float /*frs1*/, float /*frs2*/);
! double vis_fandnot(double /*frs1*/, double /*frs2*/);
! float vis_fandnots(float /*frs1*/, float /*frs2*/);
! double vis_fnot(double /*frs1*/);
! float vis_fnots(float /*frs1*/);
! double vis_fxor(double /*frs1*/, double /*frs2*/);
! float vis_fxors(float /*frs1*/, float /*frs2*/);
! double vis_fnand(double /*frs1*/, double /*frs2*/);
! float vis_fnands(float /*frs1*/, float /*frs2*/);
! double vis_fand(double /*frs1*/, double /*frs2*/);
! float vis_fands(float /*frs1*/, float /*frs2*/);
! double vis_fxnor(double /*frs1*/, double /*frs2*/);
! float vis_fxnors(float /*frs1*/, float /*frs2*/);
! double vis_fsrc(double /*frs1*/);
! float vis_fsrcs(float /*frs1*/);
! double vis_fornot(double /*frs1*/, double /*frs2*/);
! float vis_fornots(float /*frs1*/, float /*frs2*/);
! double vis_for(double /*frs1*/, double /*frs2*/);
! float vis_fors(float /*frs1*/, float /*frs2*/);
! double vis_fzero(void);
! float vis_fzeros(void);
!--------------------------------------------------------------------
! Partial store instructions
! void vis_stdfa_ASI_PST8P(double /*frd*/, void * /*rs1*/, int /*rmask*/);
.inline vis_stdfa_ASI_PST8P,16
stda %f4,[%o2]%o3,0xc0 ! ASI_PST8_P
! void vis_stdfa_ASI_PST8PL(double /*frd*/, void * /*rs1*/, int /*rmask*/);
.inline vis_stdfa_ASI_PST8PL,16
stda %f4,[%o2]%o3,0xc8 ! ASI_PST8_PL
! void vis_stdfa_ASI_PST8S(double /*frd*/, void * /*rs1*/, int /*rmask*/);
.inline vis_stdfa_ASI_PST8S,16
stda %f4,[%o2]%o3,0xc1 ! ASI_PST8_S
! void vis_stdfa_ASI_PST8P_int_pair(void * /*rs1*/, void * /*rs2*/, void * /*rs3*/, int /*rmask*/);
.inline vis_stdfa_ASI_PST8P_int_pair,16
stda %f4,[%o2]%o3,0xc0 ! ASI_PST8_P
! void vis_stdfa_ASI_PST16P(double /*frd*/, void * /*rs1*/, int /*rmask*/);
.inline vis_stdfa_ASI_PST16P,16
stda %f4,[%o2]%o3,0xc2 ! ASI_PST16_P
! void vis_stdfa_ASI_PST16PL(double /*frd*/, void * /*rs1*/, int /*rmask*/);
.inline vis_stdfa_ASI_PST16PL,16
stda %f4,[%o2]%o3,0xca ! ASI_PST16_PL
! void vis_stdfa_ASI_PST16S(double /*frd*/, void * /*rs1*/, int /*rmask*/);
.inline vis_stdfa_ASI_PST16S,16
stda %f4,[%o2]%o3,0xc3 ! ASI_PST16_S
! void vis_stdfa_ASI_PST32P(double /*frd*/, void * /*rs1*/, int /*rmask*/);
.inline vis_stdfa_ASI_PST32P,16
stda %f4,[%o2]%o3,0xc4 ! ASI_PST32_P
! void vis_stdfa_ASI_PST32PL(double /*frd*/, void * /*rs1*/, int /*rmask*/);
.inline vis_stdfa_ASI_PST32PL,16
stda %f4,[%o2]%o3,0xcc ! ASI_PST32_PL
! void vis_stdfa_ASI_PST32S(double /*frd*/, void * /*rs1*/, int /*rmask*/);
.inline vis_stdfa_ASI_PST32S,16
stda %f4,[%o2]%o3,0xc5 ! ASI_PST32_S
!--------------------------------------------------------------------
! Byte & short store instructions
! void vis_stdfa_ASI_FL8P(double /*frd*/, void * /*rs1*/);
.inline vis_stdfa_ASI_FL8P,12
stda %f4,[%o2]0xd0 ! ASI_FL8_P
! void vis_stdfa_ASI_FL8P_index(double /*frd*/, void * /*rs1*/, long /*index*/);
.inline vis_stdfa_ASI_FL8P_index,16
stda %f4,[%o2+%o3]0xd0 ! ASI_FL8_P
! void vis_stdfa_ASI_FL8S(double /*frd*/, void * /*rs1*/);
.inline vis_stdfa_ASI_FL8S,12
stda %f4,[%o2]0xd1 ! ASI_FL8_S
! void vis_stdfa_ASI_FL16P(double /*frd*/, void * /*rs1*/);
.inline vis_stdfa_ASI_FL16P,12
stda %f4,[%o2]0xd2 ! ASI_FL16_P
! void vis_stdfa_ASI_FL16P_index(double /*frd*/, void * /*rs1*/, long /*index*/);
.inline vis_stdfa_ASI_FL16P_index,16
stda %f4,[%o2+%o3]0xd2 ! ASI_FL16_P
! void vis_stdfa_ASI_FL16S(double /*frd*/, void * /*rs1*/);
.inline vis_stdfa_ASI_FL16S,12
stda %f4,[%o2]0xd3 ! ASI_FL16_S
! void vis_stdfa_ASI_FL8PL(double /*frd*/, void * /*rs1*/);
.inline vis_stdfa_ASI_FL8PL,12
stda %f4,[%o2]0xd8 ! ASI_FL8_PL
! void vis_stdfa_ASI_FL8PL_index(double /*frd*/, void * /*rs1*/, long /*index*/);
.inline vis_stdfa_ASI_FL8PL_index,16
stda %f4,[%o2+%o3]0xd8 ! ASI_FL8_PL
! void vis_stdfa_ASI_FL8SL(double /*frd*/, void * /*rs1*/);
.inline vis_stdfa_ASI_FL8SL,12
stda %f4,[%o2]0xd9 ! ASI_FL8_SL
! void vis_stdfa_ASI_FL16PL(double /*frd*/, void * /*rs1*/);
.inline vis_stdfa_ASI_FL16PL,12
stda %f4,[%o2]0xda ! ASI_FL16_PL
! void vis_stdfa_ASI_FL16PL_index(double /*frd*/, void * /*rs1*/, long /*index*/);
.inline vis_stdfa_ASI_FL16PL_index,16
stda %f4,[%o2+%o3]0xda ! ASI_FL16_PL
! void vis_stdfa_ASI_FL16SL(double /*frd*/, void * /*rs1*/);
.inline vis_stdfa_ASI_FL16SL,12
stda %f4,[%o2]0xdb ! ASI_FL16_SL
!--------------------------------------------------------------------
! Byte & short load instructions
! double vis_lddfa_ASI_FL8P(void * /*rs1*/);
.inline vis_lddfa_ASI_FL8P,4
ldda [%o0]0xd0,%f0 ! ASI_FL8_P
! double vis_lddfa_ASI_FL8P_index(void * /*rs1*/, long /*index*/);
.inline vis_lddfa_ASI_FL8P_index,8
ldda [%o0+%o1]0xd0,%f0 ! ASI_FL8_P
! double vis_lddfa_ASI_FL8P_hi(void *rs1, unsigned int /*index*/);
.inline vis_lddfa_ASI_FL8P_hi,8
ldda [%o0+%o1]0xd0,%f0 ! ASI_FL8_P
! double vis_lddfa_ASI_FL8P_lo(void *rs1, unsigned int /*index*/);
.inline vis_lddfa_ASI_FL8P_lo,8
ldda [%o0+%o1]0xd0,%f0 ! ASI_FL8_P
! double vis_lddfa_ASI_FL8S(void * /*rs1*/);
.inline vis_lddfa_ASI_FL8S,4
ldda [%o0]0xd1,%f0 ! ASI_FL8_S
! double vis_lddfa_ASI_FL16P(void * /*rs1*/);
.inline vis_lddfa_ASI_FL16P,4
ldda [%o0]0xd2,%f0 ! ASI_FL16_P
! double vis_lddfa_ASI_FL16P_index(void * /*rs1*/, long /*index*/);
.inline vis_lddfa_ASI_FL16P_index,8
ldda [%o0+%o1]0xd2,%f0 ! ASI_FL16_P
! double vis_lddfa_ASI_FL16S(void * /*rs1*/);
.inline vis_lddfa_ASI_FL16S,4
ldda [%o0]0xd3,%f0 ! ASI_FL16_S
! double vis_lddfa_ASI_FL8PL(void * /*rs1*/);
.inline vis_lddfa_ASI_FL8PL,4
ldda [%o0]0xd8,%f0 ! ASI_FL8_PL
! double vis_lddfa_ASI_FL8PL_index(void * /*rs1*/, long /*index*/);
.inline vis_lddfa_ASI_FL8PL_index,8
ldda [%o0+%o1]0xd8,%f0 ! ASI_FL8_PL
! double vis_lddfa_ASI_FL8SL(void * /*rs1*/);
.inline vis_lddfa_ASI_FL8SL,4
ldda [%o0]0xd9,%f0 ! ASI_FL8_SL
! double vis_lddfa_ASI_FL16PL(void * /*rs1*/);
.inline vis_lddfa_ASI_FL16PL,4
ldda [%o0]0xda,%f0 ! ASI_FL16_PL
! double vis_lddfa_ASI_FL16PL_index(void * /*rs1*/, long /*index*/);
.inline vis_lddfa_ASI_FL16PL_index,8
ldda [%o0+%o1]0xda,%f0 ! ASI_FL16_PL
! double vis_lddfa_ASI_FL16SL(void * /*rs1*/);
.inline vis_lddfa_ASI_FL16SL,4
ldda [%o0]0xdb,%f0 ! ASI_FL16_SL
!--------------------------------------------------------------------
! Graphics status register
! unsigned int vis_read_gsr32(void);
! void vis_write_gsr32(unsigned int /* GSR */);
.inline vis_write_gsr32,4
!--------------------------------------------------------------------
! unsigned long vis_array8(unsigned long long /*rs1 */, int /*rs2*/);
srl %o1,0,%o1 ! clear the most significant 32 bits of %o1
or %o0,%o1,%o3 ! join %o0 and %o1 into %o3
! unsigned long vis_array16(unsigned long long /*rs1*/, int /*rs2*/);
srl %o1,0,%o1 ! clear the most significant 32 bits of %o1
or %o0,%o1,%o3 ! join %o0 and %o1 into %o3
! unsigned long vis_array32(unsigned long long /*rs1*/, int /*rs2*/);
srl %o1,0,%o1 ! clear the most significant 32 bits of %o1
or %o0,%o1,%o3 ! join %o0 and %o1 into %o3
!--------------------------------------------------------------------
! Register aliasing and type casts
! float vis_read_hi(double /* frs1 */);
std %o0,[%sp+0x48] ! store double frs1
ldd [%sp+0x48],%f0 ! %f0:%f1 = double frs1; return %f0;
! float vis_read_lo(double /* frs1 */);
std %o0,[%sp+0x48] ! store double frs1
ldd [%sp+0x48],%f0 ! %f0:%f1 = double frs1;
fmovs %f1,%f0 ! %f0 = low word (frs1); return %f0;
! double vis_write_hi(double /* frs1 */, float /* frs2 */);
std %o0,[%sp+0x48] ! store double frs1;
ldd [%sp+0x48],%f0 ! %f0:%f1 = double frs1;
st %o2,[%sp+0x44] ! store float frs2;
ld [%sp+0x44],%f2 ! %f2 = float frs2;
fmovs %f2,%f0 ! %f0 = float frs2; return %f0:f1;
! double vis_write_lo(double /* frs1 */, float /* frs2 */);
std %o0,[%sp+0x48] ! store double frs1;
ldd [%sp+0x48],%f0 ! %f0:%f1 = double frs1;
st %o2,[%sp+0x44] ! store float frs2;
ld [%sp+0x44],%f2 ! %f2 = float frs2;
fmovs %f2,%f1 ! %f1 = float frs2; return %f0:f1;
! double vis_freg_pair(float /* frs1 */, float /* frs2 */);
st %o0,[%sp+0x48] ! store float frs1
st %o1,[%sp+0x48] ! store float frs2
! float vis_to_float(unsigned int /*value*/);
! double vis_to_double(unsigned int /*value1*/, unsigned int /*value2*/);
! double vis_to_double_dup(unsigned int /*value*/);
.inline vis_to_double_dup,4
fmovs %f1,%f0 ! duplicate value
! double vis_ll_to_double(unsigned long long /*value*/);
.inline vis_ll_to_double,8
!--------------------------------------------------------------------
! Address space identifier (ASI) register
! unsigned int vis_read_asi(void);
! void vis_write_asi(unsigned int /* ASI */);
!--------------------------------------------------------------------
! float vis_ldfa_ASI_REG(void * /*rs1*/);
.inline vis_ldfa_ASI_REG,4
! float vis_ldfa_ASI_P(void * /*rs1*/);
lda [%o0]0x80,%f0 ! ASI_P
! float vis_ldfa_ASI_P_index(void * /*rs1*/, long /*index*/);
.inline vis_ldfa_ASI_P_index,8
lda [%o0+%o1]0x80,%f0 ! ASI_PL
! float vis_ldfa_ASI_PL(void * /*rs1*/);
.inline vis_ldfa_ASI_PL,4
lda [%o0]0x88,%f0 ! ASI_PL
! float vis_ldfa_ASI_PL_index(void * /*rs1*/, long /*index*/);
.inline vis_ldfa_ASI_PL_index,8
lda [%o0+%o1]0x88,%f0 ! ASI_PL
! double vis_lddfa_ASI_REG(void * /*rs1*/);
.inline vis_lddfa_ASI_REG,4
! double vis_lddfa_ASI_P(void * /*rs1*/);
.inline vis_lddfa_ASI_P,4
ldda [%o0]0x80,%f0 ! ASI_P
! double vis_lddfa_ASI_P_index(void * /*rs1*/, long /*index*/);
.inline vis_lddfa_ASI_P_index,8
ldda [%o0+%o1]0x80,%f0 ! ASI_P
! double vis_lddfa_ASI_PL(void * /*rs1*/);
.inline vis_lddfa_ASI_PL,4
ldda [%o0]0x88,%f0 ! ASI_PL
! double vis_lddfa_ASI_PL_index(void * /*rs1*/, long /*index*/);
.inline vis_lddfa_ASI_PL_index,8
ldda [%o0+%o1]0x88,%f0 ! ASI_PL
! void vis_stfa_ASI_REG(float /*frs*/, void * /*rs1*/);
.inline vis_stfa_ASI_REG,8
! void vis_stfa_ASI_P(float /*frs*/, void * /*rs1*/);
sta %f4,[%o1]0x80 ! ASI_P
! void vis_stfa_ASI_P_index(float /*frs*/, void * /*rs1*/, long /*index*/);
.inline vis_stfa_ASI_P_index,8
sta %f4,[%o1+%o2]0x80 ! ASI_P
! void vis_stfa_ASI_PL(float /*frs*/, void * /*rs1*/);
.inline vis_stfa_ASI_PL,8
sta %f4,[%o1]0x88 ! ASI_PL
! void vis_stfa_ASI_PL_index(float /*frs*/, void * /*rs1*/, long /*index*/);
.inline vis_stfa_ASI_PL_index,8
sta %f4,[%o1+%o2]0x88 ! ASI_PL
! void vis_stdfa_ASI_REG(double /*frd*/, void * /*rs1*/);
.inline vis_stdfa_ASI_REG,12
! void vis_stdfa_ASI_P(double /*frd*/, void * /*rs1*/);
.inline vis_stdfa_ASI_P,12
stda %f4,[%o2]0x80 ! ASI_P
! void vis_stdfa_ASI_P_index(double /*frd*/, void * /*rs1*/, long /*index*/);
.inline vis_stdfa_ASI_P_index,16
stda %f4,[%o2+%o3]0x80 ! ASI_P
! void vis_stdfa_ASI_PL(double /*frd*/, void * /*rs1*/);
.inline vis_stdfa_ASI_PL,12
stda %f4,[%o2]0x88 ! ASI_PL
! void vis_stdfa_ASI_PL_index(double /*frd*/, void * /*rs1*/, long /*index*/);
.inline vis_stdfa_ASI_PL_index,16
stda %f4,[%o2+%o3]0x88 ! ASI_PL
! unsigned short vis_lduha_ASI_REG(void * /*rs1*/);
.inline vis_lduha_ASI_REG,4
! unsigned short vis_lduha_ASI_P(void * /*rs1*/);
.inline vis_lduha_ASI_P,4
lduha [%o0]0x80,%o0 ! ASI_P
! unsigned short vis_lduha_ASI_PL(void * /*rs1*/);
.inline vis_lduha_ASI_PL,4
lduha [%o0]0x88,%o0 ! ASI_PL
! unsigned short vis_lduha_ASI_P_index(void * /*rs1*/, long /*index*/);
.inline vis_lduha_ASI_P_index,8
lduha [%o0+%o1]0x80,%o0 ! ASI_P
! unsigned short vis_lduha_ASI_PL_index(void * /*rs1*/, long /*index*/);
.inline vis_lduha_ASI_PL_index,8
lduha [%o0+%o1]0x88,%o0 ! ASI_PL
!--------------------------------------------------------------------
! void vis_prefetch_read(void * /*address*/);
.inline vis_prefetch_read,4
! void vis_prefetch_write(void * /*address*/);
.inline vis_prefetch_write,4
!--------------------------------------------------------------------
! Nonfaulting load instructions
! char vis_ldsba_ASI_PNF(void * /*rs1*/);
.inline vis_ldsba_ASI_PNF,4
ldsba [%o0]0x82,%o0 ! ASI_PNF
! char vis_ldsba_ASI_PNF_index(void * /*rs1*/, long /*index*/);
.inline vis_ldsba_ASI_PNF_index,8
ldsba [%o0+%o1]0x82,%o0 ! ASI_PNF
! char vis_ldsba_ASI_PNFL(void * /*rs1*/);
.inline vis_ldsba_ASI_PNFL,4
ldsba [%o0]0x8a,%o0 ! ASI_PNFL
! char vis_ldsba_ASI_PNFL_index(void * /*rs1*/, long /*index*/);
.inline vis_ldsba_ASI_PNFL_index,8
ldsba [%o0+%o1]0x8a,%o0 ! ASI_PNFL
! unsigned char vis_lduba_ASI_PNF(void * /*rs1*/);
.inline vis_lduba_ASI_PNF,4
lduba [%o0]0x82,%o0 ! ASI_PNF
! unsigned char vis_lduba_ASI_PNF_index(void * /*rs1*/, long /*index*/);
.inline vis_lduba_ASI_PNF_index,8
lduba [%o0+%o1]0x82,%o0 ! ASI_PNF
! unsigned char vis_lduba_ASI_PNFL(void * /*rs1*/);
.inline vis_lduba_ASI_PNFL,4
lduba [%o0]0x8a,%o0 ! ASI_PNFL
! unsigned char vis_lduba_ASI_PNFL_index(void * /*rs1*/, long /*index*/);
.inline vis_lduba_ASI_PNFL_index,8
lduba [%o0+%o1]0x8a,%o0 ! ASI_PNFL
! short vis_ldsha_ASI_PNF(void * /*rs1*/);
.inline vis_ldsha_ASI_PNF,4
ldsha [%o0]0x82,%o0 ! ASI_PNF
! short vis_ldsha_ASI_PNF_index(void * /*rs1*/, long /*index*/);
.inline vis_ldsha_ASI_PNF_index,8
ldsha [%o0+%o1]0x82,%o0 ! ASI_PNF
! short vis_ldsha_ASI_PNFL(void * /*rs1*/);
.inline vis_ldsha_ASI_PNFL,4
ldsha [%o0]0x8a,%o0 ! ASI_PNFL
! short vis_ldsha_ASI_PNFL_index(void * /*rs1*/, long /*index*/);
.inline vis_ldsha_ASI_PNFL_index,8
ldsha [%o0+%o1]0x8a,%o0 ! ASI_PNFL
! unsigned short vis_lduha_ASI_PNF(void * /*rs1*/);
.inline vis_lduha_ASI_PNF,4
lduha [%o0]0x82,%o0 ! ASI_PNF
! unsigned short vis_lduha_ASI_PNF_index(void * /*rs1*/, long /*index*/);
.inline vis_lduha_ASI_PNF_index,8
lduha [%o0+%o1]0x82,%o0 ! ASI_PNF
! unsigned short vis_lduha_ASI_PNFL(void * /*rs1*/);
.inline vis_lduha_ASI_PNFL,4
lduha [%o0]0x8a,%o0 ! ASI_PNFL
! unsigned short vis_lduha_ASI_PNFL_index(void * /*rs1*/, long /*index*/);
.inline vis_lduha_ASI_PNFL_index,8
lduha [%o0+%o1]0x8a,%o0 ! ASI_PNFL
! int vis_ldswa_ASI_PNF(void * /*rs1*/);
.inline vis_ldswa_ASI_PNF,4
ldswa [%o0]0x82,%o0 ! ASI_PNF
! int vis_ldswa_ASI_PNF_index(void * /*rs1*/, long /*index*/);
.inline vis_ldswa_ASI_PNF_index,8
ldswa [%o0+%o1]0x82,%o0 ! ASI_PNF
! int vis_ldswa_ASI_PNFL(void * /*rs1*/);
.inline vis_ldswa_ASI_PNFL,4
ldswa [%o0]0x8a,%o0 ! ASI_PNFL
! int vis_ldswa_ASI_PNFL_index(void * /*rs1*/, long /*index*/);
.inline vis_ldswa_ASI_PNFL_index,8
ldswa [%o0+%o1]0x8a,%o0 ! ASI_PNFL
! unsigned int vis_lduwa_ASI_PNF(void * /*rs1*/);
.inline vis_lduwa_ASI_PNF,4
lduwa [%o0]0x82,%o0 ! ASI_PNF
! unsigned int vis_lduwa_ASI_PNF_index(void * /*rs1*/, long /*index*/);
.inline vis_lduwa_ASI_PNF_index,8
lduwa [%o0+%o1]0x82,%o0 ! ASI_PNF
! unsigned int vis_lduwa_ASI_PNFL(void * /*rs1*/);
.inline vis_lduwa_ASI_PNFL,4
lduwa [%o0]0x8a,%o0 ! ASI_PNFL
! unsigned int vis_lduwa_ASI_PNFL_index(void * /*rs1*/, long /*index*/);
.inline vis_lduwa_ASI_PNFL_index,8
lduwa [%o0+%o1]0x8a,%o0 ! ASI_PNFL
! long vis_ldxa_ASI_PNF(void * /*rs1*/);
.inline vis_ldxa_ASI_PNF,4
ldxa [%o0]0x82,%o0 ! ASI_PNF
! long vis_ldxa_ASI_PNF_index(void * /*rs1*/, long /*index*/);
.inline vis_ldxa_ASI_PNF_index,8
ldxa [%o0+%o1]0x82,%o0 ! ASI_PNF
! long vis_ldxa_ASI_PNFL(void * /*rs1*/);
.inline vis_ldxa_ASI_PNFL,4
ldxa [%o0]0x8a,%o0 ! ASI_PNFL
! long vis_ldxa_ASI_PNFL_index(void * /*rs1*/, long /*index*/);
.inline vis_ldxa_ASI_PNFL_index,8
ldxa [%o0+%o1]0x8a,%o0 ! ASI_PNFL
! long long vis_ldda_ASI_PNF(void * /*rs1*/);
.inline vis_ldda_ASI_PNF,4
ldda [%o0]0x82,%o0 ! ASI_PNF
! long long vis_ldda_ASI_PNF_index(void * /*rs1*/, long /*index*/);
.inline vis_ldda_ASI_PNF_index,8
ldda [%o0+%o1]0x82,%o0 ! ASI_PNF
! long long vis_ldda_ASI_PNFL(void * /*rs1*/);
.inline vis_ldda_ASI_PNFL,4
ldda [%o0]0x8a,%o0 ! ASI_PNFL
! long long vis_ldda_ASI_PNFL_index(void * /*rs1*/, long /*index*/);
.inline vis_ldda_ASI_PNFL_index,8
ldda [%o0+%o1]0x8a,%o0 ! ASI_PNFL
! float vis_ldfa_ASI_PNF(void * /*rs1*/);
.inline vis_ldfa_ASI_PNF,4
lda [%o0]0x82,%f0 ! ASI_PNF
! float vis_ldfa_ASI_PNF_index(void * /*rs1*/, long /*index*/);
.inline vis_ldfa_ASI_PNF_index,8
lda [%o0+%o1]0x82,%f0 ! ASI_PNF
! float vis_ldfa_ASI_PNFL(void * /*rs1*/);
.inline vis_ldfa_ASI_PNFL,4
lda [%o0]0x8a,%f0 ! ASI_PNFL
! float vis_ldfa_ASI_PNFL_index(void * /*rs1*/, long /*index*/);
.inline vis_ldfa_ASI_PNFL_index,8
lda [%o0+%o1]0x8a,%f0 ! ASI_PNFL
! double vis_lddfa_ASI_PNF(void * /*rs1*/);
.inline vis_lddfa_ASI_PNF,4
ldda [%o0]0x82,%f0 ! ASI_PNF
! double vis_lddfa_ASI_PNF_index(void * /*rs1*/, long /*index*/);
.inline vis_lddfa_ASI_PNF_index,8
ldda [%o0+%o1]0x82,%f0 ! ASI_PNF
! double vis_lddfa_ASI_PNFL(void * /*rs1*/);
.inline vis_lddfa_ASI_PNFL,4
ldda [%o0]0x8a,%f0 ! ASI_PNFL
! double vis_lddfa_ASI_PNFL_index(void * /*rs1*/, long /*index*/);
.inline vis_lddfa_ASI_PNFL_index,8
ldda [%o0+%o1]0x8a,%f0 ! ASI_PNFL
!--------------------------------------------------------------------
! The following are the new VIS 2.0 instructions.
! Edge handling instructions which do not set the integer condition codes
! int vis_edge8n(void * /*rs1*/, void * /*rs2*/);
! int vis_edge8ln(void * /*rs1*/, void * /*rs2*/);
! int vis_edge16n(void * /*rs1*/, void * /*rs2*/);
! int vis_edge16ln(void * /*rs1*/, void * /*rs2*/);
! int vis_edge32n(void * /*rs1*/, void * /*rs2*/);
! int vis_edge32ln(void * /*rs1*/, void * /*rs2*/);
!--------------------------------------------------------------------
! Byte mask and shuffle instructions
! void vis_write_bmask(unsigned int /*rs1*/, unsigned int /*rs2*/);
.inline vis_write_bmask,8
! double vis_bshuffle(double /*frs1*/, double /*frs2*/);
!--------------------------------------------------------------------
! Graphics status register
! unsigned int vis_read_bmask(void);
! unsigned long long vis_read_gsr64(void);
! void vis_write_gsr64(unsigned long long /* GSR */);
.inline vis_write_gsr64,8
srl %o1,0,%o1 ! clear the most significant 32 bits of %o1
or %o0,%o1,%o3 ! join %o0 and %o1 into %o3