add gep null tests
ADD
tests/alive-tv/memory/gep-null.src.ll
+define i64 @f() {
+ %p2 = getelementptr inbounds i32, i32* null, i8 0
+ %v = ptrtoint i32* %p2 to i64
+ %v2 = add i64 %v, 3
+ ret i64 %v2
+}
+
+; ERROR: Value mismatch

ADD
tests/alive-tv/memory/gep-null.tgt.ll
+define i64 @f() {
+ ret i64 4
+}

ADD
tests/alive-tv/memory/gep-null2.src.ll
+define i64 @f() {
+ %p2 = getelementptr inbounds i32, i32* null, i8 1
+ %v = ptrtoint i32* %p2 to i64
+ %v2 = add i64 %v, 3
+ ret i64 %v2
+}

ADD
tests/alive-tv/memory/gep-null2.tgt.ll
+define i64 @f() {
+ ret i64 4
+}

add gep null tests