aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2006-02-01 19:36:52 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2006-02-01 19:36:52 +0000
commit10d7f9a33f0909f72835ad4609448f3092d21499 (patch)
tree05e760845f44b21caf14daec24f708672885e71d /test/CodeGen
parent1cf9d961b2fc35c8ba67f20fd36c2b5fb51c9709 (diff)
downloadexternal_llvm-10d7f9a33f0909f72835ad4609448f3092d21499.zip
external_llvm-10d7f9a33f0909f72835ad4609448f3092d21499.tar.gz
external_llvm-10d7f9a33f0909f72835ad4609448f3092d21499.tar.bz2
test cmov immediate form
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/Alpha/cmov.ll17
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
+}
+