[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/fp_load_cast_fold.llx
Chris Lattner
lattner at cs.uiuc.edu
Sun Apr 11 18:19:02 PDT 2004
Changes in directory llvm/test/Regression/CodeGen/X86:
fp_load_cast_fold.llx added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes: (+17 -0)
Index: llvm/test/Regression/CodeGen/X86/fp_load_cast_fold.llx
diff -c /dev/null llvm/test/Regression/CodeGen/X86/fp_load_cast_fold.llx:1.1
*** /dev/null Sun Apr 11 18:18:40 2004
--- llvm/test/Regression/CodeGen/X86/fp_load_cast_fold.llx Sun Apr 11 18:18:30 2004
***************
*** 0 ****
--- 1,17 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | grep fild | not grep ESP
+ double %short(short* %P) {
+ %V = load short* %P
+ %V2 = cast short %V to double
+ ret double %V2
+ }
+ double %int(int* %P) {
+ %V = load int* %P
+ %V2 = cast int %V to double
+ ret double %V2
+ }
+ double %long(long* %P) {
+ %V = load long* %P
+ %V2 = cast long %V to double
+ ret double %V2
+ }
+
More information about the llvm-commits
mailing list