mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user