diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Alpha/cmov.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/Alpha/cmov.ll b/test/CodeGen/Alpha/cmov.ll new file mode 100644 index 0000000..81310ca --- /dev/null +++ b/test/CodeGen/Alpha/cmov.ll @@ -0,0 +1,17 @@ +; RUN: llvm-as < %s | llc -march=alpha | not grep cmovlt +; RUN: llvm-as < %s | llc -march=alpha | grep cmoveq + +long %cmovlt_(long %a, long %c) { +entry: + %tmp.1 = setlt long %c, 0 + %retval = select bool %tmp.1, long %a, long 10 + ret long %retval +} + +long %cmov_const(long %a, long %b, long %c) { +entry: + %tmp.1 = setlt long %a, %b + %retval = select bool %tmp.1, long %c, long 10 + ret long %retval +} + |