2011-06-24 20:56:15     sim tests?

Document created by Aaronwu Employee on Oct 16, 2013
Version 1Show Document
  • View in full screen mode

2011-06-24 20:56:15     sim tests?

Matthew Getz (UNITED STATES)

Message: 101675   

 

I was trying to run the sim tests with the latest toolchain, and was getting all kinds of assembly errors.

 

Doesn't anyone run these? or am I doing something wrong?

 

matthew@Scott:~/blackfin-sources/toolchain/binutils-2.17/sim/testsuite/sim/bfin$ ./run-tests.sh -rs *.s

Compiling tests: c_dsp32mac_dr_a1a0_iutsh.s: Assembler messages:

c_dsp32mac_dr_a1a0_iutsh.s:17: Warning: left operand is a bignum; integer 0 assumed

c_dsp32mac_dr_a1a0_iutsh.s:17: Error: Immediate value out of range.

c_dsp32mac_dr_a1a0_m.s: Assembler messages:

c_dsp32mac_dr_a1a0_m.s:17: Warning: left operand is a bignum; integer 0 assumed

c_dsp32mac_dr_a1a0.s: Assembler messages:

c_dsp32mac_dr_a1a0.s:17: c_dsp32mac_dr_a1a0_m.s:17: Warning: Error: left operand is a bignum; integer 0 assumedImmediate value out of range.

 

c_dsp32mac_dr_a1a0.s:17: Error: Immediate value out of range.

make: *** [c_dsp32mac_dr_a1a0_iutsh.s.x] Error 1

make: *** Waiting for unfinished jobs....

make: *** [c_dsp32mac_dr_a1a0.s.x] Error 1

make: *** [c_dsp32mac_dr_a1a0_m.s.x] Error 1

FAIL!

 

 

I had to:

 

 

 

Index: c_dsp32mac_dr_a1a0.s

===================================================================

--- c_dsp32mac_dr_a1a0.s    (revision 5552)

+++ c_dsp32mac_dr_a1a0.s    (working copy)

@@ -14,7 +14,7 @@

     imm32 r1, 0xb2bcfec7;

     imm32 r2, 0xc1348679;

     imm32 r3, 0xd0049007;

-    imm32 r4, 0x12efbc5569;

+    imm32 r4, 0xefbc5569;

     imm32 r5, 0xcd35560b;

     imm32 r6, 0xe00c807d;

     imm32 r7, 0xf78e9008;

 

 

to get:

 

matthew@Scott:~/blackfin-sources/toolchain/binutils-2.17/sim/testsuite/sim/bfin$ ./run-tests.sh -rs c_dsp32mac_dr_a1a0.s

Compiling tests: PASS

SIM   c_dsp32mac_dr_a1a0.s.x                  PASS

 

matthew@Scott:~/blackfin-sources/toolchain/binutils-2.17/sim/testsuite/sim/bfin$ bfin-elf-as --version

GNU assembler (ADI-trunk/svn-5548) 2.21

Copyright 2010 Free Software Foundation, Inc.

This program is free software; you may redistribute it under the terms of

the GNU General Public License version 3 or later.

This program has absolutely no warranty.

This assembler was configured for a target of `bfin-elf'.

matthew@Scott:~/blackfin-sources/toolchain/binutils-2.17/sim/testsuite/sim/bfin$ bfin-elf-gcc --version

bfin-elf-gcc (ADI-trunk/svn-5455) 4.3.5

Copyright (C) 2008 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

QuoteReplyEditDelete

 

 

2011-06-24 21:07:02     Re: sim tests?

Mike Frysinger (UNITED STATES)

Message: 101676   

 

that's pretty weird.  the code is wrong (you cant load 36bits into a 32bit register), but i wonder why i'm not seeing those warnings on my systems.

 

are you using a 32bit OS ?  `file /bin/bash` and `file $(which bfin-elf-gcc)` ...

 

i'll have to check the original source files to see if that typo came from us or if it too has the bug.

QuoteReplyEditDelete

 

 

2011-06-25 11:43:37     Re: sim tests?

Matthew Getz (UNITED STATES)

Message: 101685   

 

matthew@Scott:~$ file /bin/bash

/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

matthew@Scott:~$ file ~/blackfin-sources/

bfin-elf/          bfin-linux-uclibc/ bfin-uclinux/      build/             logs/              toolchain/         u-boot/            uclinux-dist/

matthew@Scott:~$ file ~/blackfin-sources/bfin-elf/bin/bfin-elf-gcc

/home/matthew/blackfin-sources/bfin-elf/bin/bfin-elf-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

 

 

matthew@Scott:~/blackfin-sources/toolchain/buildscript$ ./BuildToolChain -p

Checking for development packages (skip checks with the -D option)

Check http://gcc.gnu.org/install/prerequisites.html for more information

   autoconf (GNU Autoconf) 2.67 License GPLv3+/Autoconf: GNU GPL version 3 or later

   automake (GNU automake) 1.11.1

   GNU Awk 3.1.7

** Looking up file /bin/sh for more info

* /bin/sh: symbolic link to `dash'

* /bin/dash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

   bison (GNU Bison) 2.4.1

   cp (GNU coreutils) 8.5

   echo seems to be a shell builtin

   flex 2.5.35

   gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2

   gettext (GNU gettext-runtime) 0.18.1

   GNU grep 2.6.3

   ln (GNU coreutils) 8.5

   m4 (GNU M4) 1.4.14

   GNU Make 3.81

   makeinfo (GNU texinfo) 4.13

   mkdir (GNU coreutils) 8.5

   msgfmt (GNU gettext-tools) 0.18.1

   mv (GNU coreutils) 8.5

   rm (GNU coreutils) 8.5

   GNU sed version 4.2.1 GNU sed home page: <http://www.gnu.org/software/sed/>. Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.

   tail (GNU coreutils) 8.5

   wc (GNU coreutils) 8.5

** Looking up file /usr/bin/which for more info

* /usr/bin/which: symbolic link to `/bin/which'

* /bin/which: POSIX shell script text executable

** Looking up file /usr/bin/pkg-config for more info (0.25)

* /usr/bin/pkg-config: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

   SHELL = /bin/bash

Done checking for prerequisites

 

 

matthew@Scott:~/blackfin-sources/toolchain/buildscript$ cat /proc/cpuinfo

processor    : 0

vendor_id    : GenuineIntel

cpu family    : 6

model        : 42

model name    : Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz

stepping    : 7

cpu MHz        : 800.000

cache size    : 3072 KB

physical id    : 0

siblings    : 4

core id        : 0

cpu cores    : 2

apicid        : 0

initial apicid    : 0

fdiv_bug    : no

hlt_bug        : no

f00f_bug    : no

coma_bug    : no

fpu        : yes

fpu_exception    : yes

cpuid level    : 13

wp        : yes

flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid

bogomips    : 4988.83

clflush size    : 64

cache_alignment    : 64

address sizes    : 36 bits physical, 48 bits virtual

power management:

 

matthew@Scott:~/blackfin-sources/toolchain/buildscript$ lsb_release -a

No LSB modules are available.

Distributor ID:    Ubuntu

Description:    Ubuntu 11.04

Release:    11.04

Codename:    natty

QuoteReplyEditDelete

 

 

2011-06-27 09:21:51     Re: sim tests?

Matthew Getz (UNITED STATES)

Message: 101711   

 

Mike:

 

looks like I (mistakenly) install the 32-bit version on 64-bit hardware.

 

When I re-installed the 64-bit version, everything works fine.

QuoteReplyEditDelete

 

 

2011-06-27 16:01:03     Re: sim tests?

Mike Frysinger (UNITED STATES)

Message: 101722   

 

that shouldnt matter.  on a multilib system, 32bit apps should work the same.

 

i think it's a bug in the assembler that only shows up on 32bit systems.

Attachments

    Outcomes