diff options
author | Chris Lattner <sabre@nondot.org> | 2006-09-20 06:40:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-09-20 06:40:37 +0000 |
commit | 72475c04ed86a4d1d5613c608dfdd8b2f78e2a7a (patch) | |
tree | c73b4852cdc4ab01b53a26f500f4fb261e20917d /test/CodeGen/PowerPC/select_lt0.ll | |
parent | 7e932de7f52dbb8d876f3301aff318e3b9651492 (diff) | |
download | llvm-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.ll | 8 |
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 +} + |