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

Evan Cheng evan.cheng at apple.com
Mon Jan 30 15:39:52 PST 2006



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

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

Don't generate (or setp, setae) for SETUGE. Simply flip the operands around and
generate SETULT instead.


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

 setuge.ll |   12 ++++++++++++
 1 files changed, 12 insertions(+)


Index: llvm/test/Regression/CodeGen/X86/setuge.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/setuge.ll:1.1
*** /dev/null	Mon Jan 30 17:39:50 2006
--- llvm/test/Regression/CodeGen/X86/setuge.ll	Mon Jan 30 17:39:40 2006
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | not grep 'set'
+ 
+ declare bool %llvm.isunordered.f32(float, float)
+ 
+ float %cmp(float %A, float %B, float %C, float %D) {
+ entry:
+ 	%tmp.1 = call bool %llvm.isunordered.f32(float %A, float %B)
+ 	%tmp.2 = setge float %A, %B
+ 	%tmp.3 = or bool %tmp.1, %tmp.2
+ 	%tmp.4 = select bool %tmp.3, float %C, float %D
+ 	ret float %tmp.4
+ }






More information about the llvm-commits mailing list