1 print ".text\n\t.type _start,@", "function\n_start:\n\n";
3 @sf = ( "", ".s0", ".s1", ".s2", ".s3" );
7 foreach $i ( "fma", "fma.s", "fma.d", "fpma",
8 "fms", "fms.s", "fms.d", "fpms",
9 "fnma", "fnma.s", "fnma.d", "fpnma" ) {
11 print "\t${i}${s} f4 = f5, f6, f7\n";
16 foreach $i ( "fmpy", "fmpy.s", "fmpy.d", "fpmpy",
17 "fadd", "fadd.s", "fadd.d",
18 "fsub", "fsub.s", "fsub.d",
19 "fnmpy", "fnmpy.s", "fnmpy.d", "fpnmpy" ) {
21 print "\t${i}${s} f4 = f5, f6\n";
26 foreach $i ( "fnorm", "fnorm.s", "fnorm.d" ) {
28 print "\t${i}${s} f4 = f5\n";
33 # Fixed Point Multiply Add
35 foreach $s ( ".l", ".lu", ".h", ".hu" ) {
36 print "\txma${s} f4 = f5, f6, f7\n";
40 foreach $s ( ".l", ".lu", ".h", ".hu" ) {
41 print "\txmpy${s} f4 = f5, f6\n";
45 # Parallel Floating Point Select
47 print "\tfselect f4 = f5, f6, f7\n\n";
49 # Floating Point Compare
51 @cmp = ( ".eq", ".lt", ".le", ".unord", ".gt", ".ge", ".neq", ".nlt",
52 ".nle", ".ngt", ".nge", ".ord" );
54 @fctype = ( "", ".unc" );
57 foreach $u (@fctype) {
59 print "\tfcmp${c}${u}${s} p3, p4 = f4, f5\n";
65 # Floating Point Class
67 foreach $u (@fctype) {
68 foreach $c ( '@nat', '@qnan', '@snan', '@pos', '@neg', '@unorm',
69 '@norm', '@inf', '0x1ff' ) {
70 foreach $m ( ".m", ".nm" ) {
71 print "\tfclass${m}${u} p3, p4 = f4, $c\n";
79 foreach $i ( "frcpa", "fprcpa" ) {
81 print "\t${i}${s} f4, p5 = f6, f7\n";
86 foreach $i ( "frsqrta", "fprsqrta" ) {
88 print "\t${i}${s} f4, p5 = f6\n";
95 foreach $i ( "fmin", "fmax", "famin", "famax",
96 "fpmin", "fpmax", "fpamin", "fpamax" ) {
98 print "\t${i}${s} f4 = f5, f6\n";
107 print "\tfpcmp${c}${s} f3 = f4, f5\n";
114 foreach $i ( "fmerge.s", "fmerge.ns", "fmerge.se", "fmix.lr", "fmix.r",
115 "fmix.l", "fsxt.l", "fpack", "fswap", "fswap.nl", "fswap.nr",
116 "fand", "fandcm", "for", "fxor", "fpmerge.s", "fpmerge.ns",
118 print "\t$i f4 = f5, f6\n";
122 foreach $i ( "fabs", "fneg", "fnegabs", "fpabs", "fpneg", "fpnegabs" ) {
123 print "\t$i f4 = f5\n";
127 # Convert Floating to Fixed
129 foreach $b ( "fcvt", "fpcvt" ) {
130 foreach $f ( ".fx", ".fxu" ) {
131 foreach $t ( "", ".trunc" ) {
133 print "\t${b}${f}${t}${s} f4 = f5\n";
140 # Convert Fixed to Floating
142 foreach $e ( ".xf", ".xuf" ) {
143 print "\tfcvt$e f4 = f5\n";
150 print "\tfsetc$s 0, 0\n";
151 print "\tfsetc$s 0x3f, 0x3f\n";
165 print "\tfchkf$s _start\n";
171 print "\tbreak.f 0\n";
172 print "\tnop.f 0;;\n";
This page took 0.034804 seconds and 4 git commands to generate.