70354f88e1dce2cee3b1f84eb233220d3166f603
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", #"fpadd", ??? ias doesn't eat it
18 "fsub", "fsub.s", "fsub.d", "fpsub",
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 # Floating Point Class
56 foreach $u ( "", ".unc" ) {
57 foreach $c ( '@nat', '@qnan', '@snan', '@pos', '@neg', '@unorm',
58 '@norm', '@inf', '0x1ff' ) {
59 foreach $m ( ".m", ".nm" ) {
60 print "\tfclass${m}${u} p3, p4 = f4, $c\n";
68 foreach $i ( "frcpa", "fprcpa" ) {
70 print "\t${i}${s} f4, p5 = f6, f7\n";
75 foreach $i ( "frsqrta", "fprsqrta" ) {
77 print "\t${i}${s} f4, p5 = f6\n";
84 foreach $i ( "fmin", "fmax", "famin", "famax",
85 "fpmin", "fpmax", "fpamin", "fpamax" ) {
87 print "\t${i}${s} f4 = f5, f6\n";
96 print "\tfcmp${c}${u}${s} p3, p4 = f4, f5\n";
103 foreach $i ( "fmerge.s", "fmerge.ns", "fmerge.se", "fmix.lr", "fmix.r",
104 "fmix.l", "fsxt.l", "fpack", "fswap", "fswap.nl", "fswap.nr",
105 "fand", "fandcm", "for", "fxor", "fpmerge.s", "fpmerge.ns",
107 print "\t$i f4 = f5, f6\n";
111 foreach $i ( "fabs", "fneg", "fnegabs", "fpabs", "fpneg", "fpnegabs" ) {
112 print "\t$i f4 = f5\n";
116 # Convert Floating to Fixed
118 foreach $b ( "fcvt", "fpcvt" ) {
119 foreach $f ( ".fx", ".fxu" ) {
120 foreach $t ( "", ".trunc" ) {
122 print "\t${b}${f}${t}${s} f4 = f5\n";
129 # Convert Fixed to Floating
131 foreach $e ( ".xf", ".xuf" ) {
132 print "\tfcvt$e f4 = f5\n";
139 print "\tfsetc$s 0, 0\n";
140 print "\tfsetc$s 0x3f, 0x3f\n";
154 print "\tfchkf$s _start\n";
160 print "\tbreak.f 0\n";
161 print "\tnop.f 0;;\n";
This page took 0.035229 seconds and 3 git commands to generate.