summaryrefslogtreecommitdiff
path: root/lib9/setfcr-Linux-power.S
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2015-07-18 11:59:59 +0100
committerCharles Forsyth <charles.forsyth@gmail.com>2015-07-18 11:59:59 +0100
commit35b4355d0f9558798dab6e80d69a321826edc319 (patch)
treed089297f6fcb4424a90d99077bb799199fb237f0 /lib9/setfcr-Linux-power.S
parentce3f4532f3f68d5c3419c4581504faff3a1d2820 (diff)
move setfcr to lib9
Diffstat (limited to 'lib9/setfcr-Linux-power.S')
-rw-r--r--lib9/setfcr-Linux-power.S20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib9/setfcr-Linux-power.S b/lib9/setfcr-Linux-power.S
new file mode 100644
index 00000000..dee67528
--- /dev/null
+++ b/lib9/setfcr-Linux-power.S
@@ -0,0 +1,20 @@
+
+#define FN(x) .type x,@function; .global x; x
+
+FN(getfcr):
+ mffs %f0
+ cvtfl %r3,%f0
+ blr
+
+FN(getfsr):
+ mffs %f0
+ cvtfl %r3,%f0
+ blr
+
+FN(setfsr):
+ mtfsf 0xff, %f0
+ blr
+
+FN(setfcr):
+ mtfsf 0xff, %f0
+ blr