From 45e4eeb4302ec42b29c5f602938fa030777e5f7e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 25 Mar 2012 07:56:12 +0000 Subject: [PATCH] sim: bfin: disable redundant test that makes 32bit gas angry --- sim/testsuite/sim/bfin/ChangeLog | 2 ++ sim/testsuite/sim/bfin/fact.s | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sim/testsuite/sim/bfin/ChangeLog b/sim/testsuite/sim/bfin/ChangeLog index 6dbe3ee035b..ca634df5cc2 100644 --- a/sim/testsuite/sim/bfin/ChangeLog +++ b/sim/testsuite/sim/bfin/ChangeLog @@ -6,6 +6,8 @@ * c_dsp32shift_vmaxvmax.s: Change 0xa11002001 to 0x11002001. * c_dsp32shiftim_af_s.s: Change 0x3a1230001 to 0xa1230001. + * fact.s: Comment out test with too large a number (6227020800). + 2012-03-19 Mike Frysinger * se_all64bitg0opcodes.S, se_all64bitg1opcodes.S, diff --git a/sim/testsuite/sim/bfin/fact.s b/sim/testsuite/sim/bfin/fact.s index 38e756c1b53..aed81538d01 100644 --- a/sim/testsuite/sim/bfin/fact.s +++ b/sim/testsuite/sim/bfin/fact.s @@ -28,7 +28,11 @@ _test: factorial 10 3628800 factorial 11 39916800 factorial 12 479001600 - factorial 13 6227020800 +# This is the real answer, but it overflows 32bits. Since gas itself +# likes to choke on 64bit values when compiled for 32bit systems, just +# specify the truncated 32bit value since that's what the Blackfin will +# come up with too. +# factorial 13 6227020800 factorial 13 1932053504 pass -- 2.30.2