From bde968823a888b9401987872d94c56b72107c476 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 19 May 2007 00:41:40 +0000 Subject: [PATCH] new testcase llvm-svn: 37245 --- llvm/test/CodeGen/PowerPC/compare-duplicate.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 llvm/test/CodeGen/PowerPC/compare-duplicate.ll diff --git a/llvm/test/CodeGen/PowerPC/compare-duplicate.ll b/llvm/test/CodeGen/PowerPC/compare-duplicate.ll new file mode 100644 index 000000000000..784f2ac9a51d --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/compare-duplicate.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc | not grep slwi + +define i32 @test(i32 %A, i32 %B) { + %C = sub i32 %B, %A + %D = icmp eq i32 %C, %A + br i1 %D, label %T, label %F +T: + ret i32 19123 +F: + ret i32 %C +} -- GitLab