aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/op_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-ppc/op_helper.c')
-rw-r--r--target-ppc/op_helper.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c
index 0bb48e7a3a..ae3d254d9f 100644
--- a/target-ppc/op_helper.c
+++ b/target-ppc/op_helper.c
@@ -267,6 +267,16 @@ void do_fctiwz (void)
fesetround(cround);
}
+void do_fnmadds (void)
+{
+ FTS0 = -((FTS0 * FTS1) + FTS2);
+}
+
+void do_fnmsubs (void)
+{
+ FTS0 = -((FTS0 * FTS1) - FTS2);
+}
+
void do_fsqrt (void)
{
FT0 = sqrt(FT0);