diff options
-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 +} + |