Add correct NEON encodings for the "multiple single elements" form of vld.
[oota-llvm.git] / test / Transforms / InstCombine / malloc-free-delete.ll
1 ; RUN: opt < %s -instcombine -S | FileCheck %s
2 ; PR1201
3 define i32 @main(i32 %argc, i8** %argv) {
4         %c_19 = alloca i8*
5         %malloc_206 = malloc i8, i32 10
6 ; CHECK-NOT: malloc
7         store i8* %malloc_206, i8** %c_19
8         %tmp_207 = load i8** %c_19
9         free i8* %tmp_207
10 ; CHECK-NOT: free
11         ret i32 0
12 ; CHECK: ret i32 0
13 }
14
15 declare i8* @malloc(i32)
16 declare void @free(i8*)
17
18 define i1 @foo() {
19 ; CHECK: @foo
20 ; CHECK-NEXT: ret i1 false
21   %m = call i8* @malloc(i32 1)
22   %z = icmp eq i8* %m, null
23   call void @free(i8* %m)
24   ret i1 %z
25 }