Changes in directory llvm/test/Regression/Transforms/InstCombine:

2006-12-05-fp-to-int-ext.ll added (r1.1)
---
Log message:

Instcombine shouldn't fold these casts.


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

 2006-12-05-fp-to-int-ext.ll |   13 +++++++++++++
 1 files changed, 13 insertions(+)


Index: llvm/test/Regression/Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll
diff -c /dev/null 
llvm/test/Regression/Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll:1.1
*** /dev/null   Tue Dec  5 17:43:30 2006
--- llvm/test/Regression/Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll     
Tue Dec  5 17:43:20 2006
***************
*** 0 ****
--- 1,13 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep zext
+ 
+ ; Never merge these two conversions, even though it's possible: this is
+ ; significantly more expensive than the two conversions on some targets
+ ; and it causes libgcc to be compile __fixunsdfdi into a recursive 
+ ; function.
+ 
+ 
+ long %test(double %D) {
+       %A = fptoui double %D to uint
+       %B = zext uint %A to long
+       ret long %B
+ }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to