From 2ce649ebea6be4eff723bb0506c5ccd65868ecf2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 13 Oct 2007 06:56:18 +0000 Subject: [PATCH] new testcase llvm-svn: 42953 --- .../test/CodeGen/ARM/truncstore-dag-combine.ll | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 llvm/test/CodeGen/ARM/truncstore-dag-combine.ll diff --git a/llvm/test/CodeGen/ARM/truncstore-dag-combine.ll b/llvm/test/CodeGen/ARM/truncstore-dag-combine.ll new file mode 100644 index 000000000000..0e85fb69eb3a --- /dev/null +++ b/llvm/test/CodeGen/ARM/truncstore-dag-combine.ll @@ -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* ; [#uses=1] + %tmp = load i16* %Q, align 1 ; [#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* ; [#uses=1] + %tmp = load i32* %Q, align 1 ; [#uses=1] + store i32 %tmp, i32* %P1, align 1 + ret void +} -- GitLab