[PATCH] Fix VIS3 assembler check and conditionalize testsuite on VIS3 support.

Eric Botcazou ebotcazou@adacore.com
Tue Oct 11 18:19:00 GMT 2011


> 	* gcc.target/sparc/sparc.exp: Add vis3 target test.

This doesn't work.  The code always compiles:

(botcazou@ob) /nile.build/botcazou/gcc-head/sparc-sun-solaris2.10 $ 
gcc/xgcc -Bgcc -c -o vis.o vis.c
(botcazou@ob) /nile.build/botcazou/gcc-head/sparc-sun-solaris2.10 $ objdump -d 
vis.o

vis.o:     file format elf32-sparc

Disassembly of section .text:

00000000 <_vis3_fpadd64>:
   0:   9d e3 bf 90     save  %sp, -112, %sp
   4:   f0 3f bf f8     std  %i0, [ %fp + -8 ]
   8:   f4 3f bf f0     std  %i2, [ %fp + -16 ]
   c:   d0 1f bf f8     ldd  [ %fp + -8 ], %o0
  10:   d4 1f bf f0     ldd  [ %fp + -16 ], %o2
  14:   40 00 00 00     call  14 <_vis3_fpadd64+0x14>
  18:   01 00 00 00     nop
  1c:   82 10 00 08     mov  %o0, %g1
  20:   ba 10 00 01     mov  %g1, %i5
  24:   83 38 60 1f     sra  %g1, 0x1f, %g1
  28:   b8 10 00 01     mov  %g1, %i4
  2c:   84 10 00 1c     mov  %i4, %g2
  30:   86 10 00 1d     mov  %i5, %g3
  34:   b0 10 00 02     mov  %g2, %i0
  38:   b2 10 00 03     mov  %g3, %i1
  3c:   81 cf e0 08     rett  %i7 + 8
  40:   01 00 00 00     nop


-- 
Eric Botcazou



More information about the Gcc-patches mailing list