diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
commit | 009b1c42aa6266385f2c37e227516b24077e6dd7 (patch) | |
tree | 64ba909838c23261cace781ece27d106134ea451 /test/CodeGen/ARM/truncstore-dag-combine.ll | |
download | src-test2-009b1c42aa6266385f2c37e227516b24077e6dd7.tar.gz src-test2-009b1c42aa6266385f2c37e227516b24077e6dd7.zip |
Notes
Diffstat (limited to 'test/CodeGen/ARM/truncstore-dag-combine.ll')
-rw-r--r-- | test/CodeGen/ARM/truncstore-dag-combine.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/truncstore-dag-combine.ll b/test/CodeGen/ARM/truncstore-dag-combine.ll new file mode 100644 index 000000000000..0e85fb69eb3a --- /dev/null +++ b/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* ; <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 +} |