summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/select_lt0.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-20 06:40:37 +0000
committerChris Lattner <sabre@nondot.org>2006-09-20 06:40:37 +0000
commit72475c04ed86a4d1d5613c608dfdd8b2f78e2a7a (patch)
treec73b4852cdc4ab01b53a26f500f4fb261e20917d /test/CodeGen/PowerPC/select_lt0.ll
parent7e932de7f52dbb8d876f3301aff318e3b9651492 (diff)
downloadllvm-72475c04ed86a4d1d5613c608dfdd8b2f78e2a7a.tar.gz
llvm-72475c04ed86a4d1d5613c608dfdd8b2f78e2a7a.tar.bz2
llvm-72475c04ed86a4d1d5613c608dfdd8b2f78e2a7a.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/select_lt0.ll')
-rw-r--r--test/CodeGen/PowerPC/select_lt0.ll8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGen/PowerPC/select_lt0.ll b/test/CodeGen/PowerPC/select_lt0.ll
index 586886dac9..676c27fe57 100644
--- a/test/CodeGen/PowerPC/select_lt0.ll
+++ b/test/CodeGen/PowerPC/select_lt0.ll
@@ -38,8 +38,14 @@ entry:
}
short %seli16_2(int %a, short %b) {
-entry:
%tmp.1 = setlt int %a, 0
%retval = select bool %tmp.1, short %b, short 0
ret short %retval
}
+
+int %seli32_a_a(int %a) {
+ %tmp = setlt int %a, 1
+ %min = select bool %tmp, int %a, int 0
+ ret int %min
+}
+