[llvm-commits] [llvm] r42953 - /llvm/trunk/test/CodeGen/ARM/truncstore-dag-combine.ll

Chris Lattner sabre at nondot.org
Fri Oct 12 23:56:19 PDT 2007


Author: lattner
Date: Sat Oct 13 01:56:18 2007
New Revision: 42953

URL: http://llvm.org/viewvc/llvm-project?rev=42953&view=rev
Log:
new testcase


Added:
    llvm/trunk/test/CodeGen/ARM/truncstore-dag-combine.ll

Added: llvm/trunk/test/CodeGen/ARM/truncstore-dag-combine.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/truncstore-dag-combine.ll?rev=42953&view=auto

==============================================================================
--- llvm/trunk/test/CodeGen/ARM/truncstore-dag-combine.ll (added)
+++ llvm/trunk/test/CodeGen/ARM/truncstore-dag-combine.ll Sat Oct 13 01:56:18 2007
@@ -0,0 +1,18 @@
+; RUN: llvm-as < %s | llc -march=arm | not grep orr
+; RUN: llvm-as < %s | llc -march=arm | not grep mov
+
+define void @bar(i8* %P, i16* %Q) {
+entry:
+	%P1 = bitcast i8* %P to i16*		; <i16*> [#uses=1]
+	%tmp = load i16* %Q, align 1		; <i16> [#uses=1]
+	store i16 %tmp, i16* %P1, align 1
+	ret void
+}
+
+define void @foo(i8* %P, i32* %Q) {
+entry:
+	%P1 = bitcast i8* %P to i32*		; <i32*> [#uses=1]
+	%tmp = load i32* %Q, align 1		; <i32> [#uses=1]
+	store i32 %tmp, i32* %P1, align 1
+	ret void
+}





More information about the llvm-commits mailing list