Patchwork [i386] : Fix vcvtph2ps vec_select selector

login
register
mail settings
Submitter Uros Bizjak
Date June 17, 2012, 1:50 p.m.
Message ID <CAFULd4Y55xQs8zskg51pzPapDc55P3kNU6JR4fE=6qL-97WF3g@mail.gmail.com>
Download mbox | patch
Permalink /patch/165340/
State New
Headers show

Comments

Uros Bizjak - June 17, 2012, 1:50 p.m.
Hello!

2012-06-17  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/sse.md (vcvtph2ps): Fix vec_select selector.

Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN, will
be backported to release branches.

Uros.

Patch

Index: config/i386/sse.md
===================================================================
--- config/i386/sse.md	(revision 188703)
+++ config/i386/sse.md	(working copy)
@@ -11647,7 +11647,7 @@ 
 	  (unspec:V8SF [(match_operand:V8HI 1 "register_operand" "x")]
 		       UNSPEC_VCVTPH2PS)
 	  (parallel [(const_int 0) (const_int 1)
-		     (const_int 1) (const_int 2)])))]
+		     (const_int 2) (const_int 3)])))]
   "TARGET_F16C"
   "vcvtph2ps\t{%1, %0|%0, %1}"
   [(set_attr "type" "ssecvt")