[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/vec_select.ll

Evan Cheng evan.cheng at apple.com
Mon Apr 10 00:30:26 PDT 2006



Changes in directory llvm/test/Regression/CodeGen/X86:

vec_select.ll added (r1.1)
---
Log message:

Add a vselect test case.

---
Diffs of the changes:  (+11 -0)

 vec_select.ll |   11 +++++++++++
 1 files changed, 11 insertions(+)


Index: llvm/test/Regression/CodeGen/X86/vec_select.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/vec_select.ll:1.1
*** /dev/null	Mon Apr 10 02:30:23 2006
--- llvm/test/Regression/CodeGen/X86/vec_select.ll	Mon Apr 10 02:30:13 2006
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse
+ 
+ void %test(int %C, <4 x float>* %A, <4 x float>* %B) {
+ 	%tmp = load <4 x float>* %A
+ 	%tmp3 = load <4 x float>* %B
+ 	%tmp9 = mul <4 x float> %tmp3, %tmp3
+ 	%tmp = seteq int %C, 0
+ 	%iftmp.38.0 = select bool %tmp, <4 x float> %tmp9, <4 x float> %tmp
+ 	store <4 x float> %iftmp.38.0, <4 x float>* %A
+ 	ret void
+ }






More information about the llvm-commits mailing list