aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Alpha
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2006-09-20 15:04:55 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2006-09-20 15:04:55 +0000
commit0ddae493e91f6cfc9e855b098769e046fe2bfc5a (patch)
tree45c8ef8e3ddd437673e6814972100e7c82cca3df /test/CodeGen/Alpha
parent886f98e6f982b36cc709a0a7739a907b337168cb (diff)
downloadexternal_llvm-0ddae493e91f6cfc9e855b098769e046fe2bfc5a.zip
external_llvm-0ddae493e91f6cfc9e855b098769e046fe2bfc5a.tar.gz
external_llvm-0ddae493e91f6cfc9e855b098769e046fe2bfc5a.tar.bz2
catch another constant
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Alpha')
-rw-r--r--test/CodeGen/Alpha/cmov.ll8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGen/Alpha/cmov.ll b/test/CodeGen/Alpha/cmov.ll
index 81310ca..68ab61e 100644
--- a/test/CodeGen/Alpha/cmov.ll
+++ b/test/CodeGen/Alpha/cmov.ll
@@ -1,7 +1,7 @@
; 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) {
+long %cmov_lt(long %a, long %c) {
entry:
%tmp.1 = setlt long %c, 0
%retval = select bool %tmp.1, long %a, long 10
@@ -15,3 +15,9 @@ entry:
ret long %retval
}
+long %cmov_lt2(long %a, long %c) {
+entry:
+ %tmp.1 = setgt long %c, 0
+ %retval = select bool %tmp.1, long 10, long %a
+ ret long %retval
+}