This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH,testsuite] add check_ultrasparc_hw_available


> check_ultrasparc_hw_available, then, compiles a simple test case with
> -mcpu=ultrasparc and attempts to run it.  If it succeeds, then we know
> we can run executables compiled with -mcpu=ultrasparc.

+	# Set up, compile, and execute a test program probing bit 8 of the
+	# architecture mask, which indicates presence of MAX instructions.
+	set src svect[pid].c
+	set exe svect[pid].x
+
+	set f [open $src "w"]
+	puts $f "int main() { return 0; }"
+	close $f

The comment looks bogus.

> Tested on sparc-wrs-vxworks on the SPARC simulator, where it fixes ~300
> FAILs (they are converted to UNSUPPORTEDs).

Please test it on native UltraSPARC to see if it doesn't change anything.

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]