aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-09-20 04:27:06 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-09-20 04:27:06 +0000
commit3892baac42daadf760d140168720be1d6e585aa8 (patch)
treef4635059f5e42f46d2f4aebd6acec3032d18cb16 /test/Assembler
parent256db9bf9de7320c6d8b375e1b6ba44ae96c3680 (diff)
downloadexternal_llvm-3892baac42daadf760d140168720be1d6e585aa8.zip
external_llvm-3892baac42daadf760d140168720be1d6e585aa8.tar.gz
external_llvm-3892baac42daadf760d140168720be1d6e585aa8.tar.bz2
Clean up the usage of evaluateICmpRelation's return value.
Add another line to the ConstantExprFold test to demonstrate the GEPs may not wrap around in either the signed or unsigned senses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r--test/Assembler/ConstantExprFold.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Assembler/ConstantExprFold.ll b/test/Assembler/ConstantExprFold.ll
index 89edc24..d3d374a 100644
--- a/test/Assembler/ConstantExprFold.ll
+++ b/test/Assembler/ConstantExprFold.ll
@@ -19,6 +19,7 @@ global i64* inttoptr (i64 xor (i64 ptrtoint (i64* @A to i64), i64 0) to i64*) ;
@B = external global %Ty
global i1 icmp slt (i64* @A, i64* getelementptr (i64* @A, i64 1)) ; true
+global i1 icmp ult (i64* @A, i64* getelementptr (i64* @A, i64 1)) ; true
global i1 icmp slt (i64* @A, i64* getelementptr (i64* @A, i64 0)) ; false
global i1 icmp slt (i32* getelementptr (%Ty* @B, i64 0, i32 0),
i32* getelementptr (%Ty* @B, i64 0, i32 1)) ; true