Changes in directory llvm/test/Transforms/ScalarRepl:

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


Move Mem2Reg/DifferingTypes.ll -> ScalarRepl/DifferingTypes.ll.  -scalarrepl
implements this xform.


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

 DifferingTypes.ll |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+)


Index: llvm/test/Transforms/ScalarRepl/DifferingTypes.ll
diff -c /dev/null llvm/test/Transforms/ScalarRepl/DifferingTypes.ll:1.1
*** /dev/null   Sat May  5 17:22:13 2007
--- llvm/test/Transforms/ScalarRepl/DifferingTypes.ll   Sat May  5 17:22:03 2007
***************
*** 0 ****
--- 1,19 ----
+ ; This is a feature test.  Hopefully one day this will be implemented.  The 
+ ; generated code should perform the appropriate masking operations required 
+ ; depending on the endianness of the target...
+ ; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | \
+ ; RUN:   not grep alloca
+ 
+ implementation
+ 
+ int %testfunc(int %i, sbyte %j) {
+       %I = alloca int
+ 
+       store int %i, int* %I
+ 
+       %P = cast int* %I to sbyte*
+       store sbyte %j, sbyte* %P
+ 
+       %t = load int* %I
+       ret int %t
+ }



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

Reply via email to