From b844284a05e2d83e67001ad126e4c4f492a81b4c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 5 Jan 2006 07:46:46 +0000 Subject: [PATCH] new tests, derived from cosmics scheme output llvm-svn: 25111 --- llvm/test/Regression/Assembler/ConstantExprFold.llx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/llvm/test/Regression/Assembler/ConstantExprFold.llx b/llvm/test/Regression/Assembler/ConstantExprFold.llx index 811d9032fcad..294c77a0d6ca 100644 --- a/llvm/test/Regression/Assembler/ConstantExprFold.llx +++ b/llvm/test/Regression/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 }*)) +