[SPARC] Fix PR target/52656

Submitted by Eric Botcazou on March 24, 2012, 6:41 p.m.

Details

Message ID 201203241941.23009.ebotcazou@adacore.com
State New
Headers show

Commit Message

Eric Botcazou March 24, 2012, 6:41 p.m.
An obvious pasto.  Applied on the mainline.


2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>

	PR target/52656
	* config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.

Patch hide | download patch | download mbox

Index: config/sparc/sparc.c
===================================================================
--- config/sparc/sparc.c	(revision 185570)
+++ config/sparc/sparc.c	(working copy)
@@ -9932,7 +9932,7 @@  sparc_handle_vis_mul8x16 (tree *n_elts,
       break;
 
     case CODE_FOR_fmul8x16al_vis:
-      scale = TREE_INT_CST_LOW (VECTOR_CST_ELT (cst1, 0));
+      scale = TREE_INT_CST_LOW (VECTOR_CST_ELT (cst1, 1));
 
       for (i = 0; i < num; ++i)
 	{