Changes in directory llvm/test/Regression/Bytecode:

2006-12-11-Cast-ConstExpr.ll added (r1.1)
---
Log message:

Test case for ensuring correct reading back of cast constant expressions.


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

 2006-12-11-Cast-ConstExpr.ll |    8 ++++++++
 1 files changed, 8 insertions(+)


Index: llvm/test/Regression/Bytecode/2006-12-11-Cast-ConstExpr.ll
diff -c /dev/null llvm/test/Regression/Bytecode/2006-12-11-Cast-ConstExpr.ll:1.1
*** /dev/null   Mon Dec 11 17:20:03 2006
--- llvm/test/Regression/Bytecode/2006-12-11-Cast-ConstExpr.ll  Mon Dec 11 
17:19:53 2006
***************
*** 0 ****
--- 1,8 ----
+ ; This test ensures that we get a bitcast constant expression in and out,
+ ; not a sitofp constant expression. 
+ ; RUN: llvm-as < %s | llvm-dis | grep 'bitcast ('
+ %G = external global int
+ 
+ float %tryit(int %A) {
+    ret float bitcast( int ptrtoint (int* %G to int) to float)
+ }



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

Reply via email to