aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/ConstantExprFold.llx
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-05 07:46:46 +0000
committerChris Lattner <sabre@nondot.org>2006-01-05 07:46:46 +0000
commit63540f5cf1d93ee6a44ba86bb012391be38dee83 (patch)
treeaf102caf35c8e61127a8941df19b371bb13d26db /test/Assembler/ConstantExprFold.llx
parent2c822cce61d151e934ab5f95b9511be206b5ebce (diff)
downloadexternal_llvm-63540f5cf1d93ee6a44ba86bb012391be38dee83.zip
external_llvm-63540f5cf1d93ee6a44ba86bb012391be38dee83.tar.gz
external_llvm-63540f5cf1d93ee6a44ba86bb012391be38dee83.tar.bz2
new tests, derived from cosmics scheme output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/ConstantExprFold.llx')
-rw-r--r--test/Assembler/ConstantExprFold.llx6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Assembler/ConstantExprFold.llx b/test/Assembler/ConstantExprFold.llx
index 811d903..294c77a 100644
--- a/test/Assembler/ConstantExprFold.llx
+++ b/test/Assembler/ConstantExprFold.llx
@@ -1,6 +1,7 @@
; This test checks to make sure that constant exprs fold in some simple situations
-; RUN: llvm-as < %s | llvm-dis | not grep '('
+; RUN: llvm-as < %s | llvm-dis | not grep '(' &&
+; RUN: llvm-as < %s
%A = global long 0
@@ -23,3 +24,6 @@ global bool setlt (int* getelementptr (%Ty* %B, long 0, ubyte 0),
int* getelementptr (%Ty* %B, long 0, ubyte 1)) ; true
;global bool setne (long* %A, long* cast (%Ty* %B to long*)) ; true
+global bool seteq ({ short }* cast (int 1 to { short }*), { short }* null)
+global bool setlt ({ short }* cast (int 1 to { short }*), { short }* cast (int 2 to { short }*))
+