Lines Matching +full:sub +full:- +full:spaces
2 # SPDX-License-Identifier: GPL-2.0
16 my $globl = sub {
41 my $text = sub {
46 my $machine = sub {
51 $arch = ($flavour=~/64/) ? "ppc970-64" : "ppc970" if ($arch eq "any");
55 my $size = sub {
59 my $ret = ".size $name,.-".($flavour=~/64$/?".":"").$name;
60 $ret .= "\n.size .$name,.-.$name" if ($flavour=~/64$/);
66 my $asciz = sub {
74 my $quad = sub {
79 if (/^0x([0-9a-f]*?)([0-9a-f]{1,8})$/io)
81 elsif (/^([0-9]+)$/o)
82 { $hi=$1>>32; $lo=$1&0xffffffff; } # error-prone with 32-bit perl
97 my $cmplw = sub {
100 # Some out-of-date 32-bit GNU assembler just can't handle cmplw...
105 my $bdnz = sub {
107 my $bo = $f=~/[\+\-]/ ? 16+9 : 16; # optional "to be taken" hint
110 my $bltlr = sub {
112 my $bo = $f=~/\-/ ? 12+2 : 12; # optional "not to be taken" hint
117 my $bnelr = sub {
119 my $bo = $f=~/\-/ ? 4+2 : 4; # optional "not to be taken" hint
124 my $beqlr = sub {
126 my $bo = $f=~/-/ ? 12+2 : 12; # optional "not to be taken" hint
133 my $extrdi = sub {
135 $b = ($b+$n)&63; $n = 64-$n;
138 my $vmr = sub {
143 # Some ABIs specify vrsave, special-purpose register #256, as reserved
145 my $no_vrsave = ($flavour =~ /linux-ppc64le/);
146 my $mtspr = sub {
154 my $mfspr = sub {
157 " li $rd,-1";
164 sub vsxmem_op {
168 # made-up unaligned memory reference AltiVec/VMX instructions
169 my $lvx_u = sub { vsxmem_op(@_, 844); }; # lxvd2x
170 my $stvx_u = sub { vsxmem_op(@_, 972); }; # stxvd2x
171 my $lvdx_u = sub { vsxmem_op(@_, 588); }; # lxsdx
172 my $stvdx_u = sub { vsxmem_op(@_, 716); }; # stxsdx
173 my $lvx_4w = sub { vsxmem_op(@_, 780); }; # lxvw4x
174 my $stvx_4w = sub { vsxmem_op(@_, 908); }; # stxvw4x
177 sub vcrypto_op {
181 my $vcipher = sub { vcrypto_op(@_, 1288); };
182 my $vcipherlast = sub { vcrypto_op(@_, 1289); };
183 my $vncipher = sub { vcrypto_op(@_, 1352); };
184 my $vncipherlast= sub { vcrypto_op(@_, 1353); };
185 my $vsbox = sub { vcrypto_op(@_, 0, 1480); };
186 my $vshasigmad = sub { my ($st,$six)=splice(@_,-2); vcrypto_op(@_, $st<<4|$six, 1730); };
187 my $vshasigmaw = sub { my ($st,$six)=splice(@_,-2); vcrypto_op(@_, $st<<4|$six, 1666); };
188 my $vpmsumb = sub { vcrypto_op(@_, 1032); };
189 my $vpmsumd = sub { vcrypto_op(@_, 1224); };
190 my $vpmsubh = sub { vcrypto_op(@_, 1096); };
191 my $vpmsumw = sub { vcrypto_op(@_, 1160); };
192 my $vaddudm = sub { vcrypto_op(@_, 192); };
193 my $vadduqm = sub { vcrypto_op(@_, 256); };
195 my $mtsle = sub {
204 $line =~ s|[#!;].*$||; # get rid of asm-style comments...
205 $line =~ s|/\*.*\*/||; # ... and C-style comments...
206 $line =~ s|^\s+||; # ... and skip white spaces in beginning...
215 $line =~ s|^\s*(\.?)(\w+)([\.\+\-]?)\s*||;
220 $line =~ s/\b(c?[rf]|v|vs)([0-9]+)\b/$2/g if ($c ne "." and $flavour !~ /osx/);