Test Failure: Transforms/InstCombine/cast_ptr.ll

Test source: git

Log:

Source: <stdin>
ERROR: Unsupported instruction:   %B = inttoptr i16 %A to i8 addrspace(2)*
ERROR: Unsupported instruction:   %t.2 = call %unop* %t(%op* %O)

----------------------------------------
define * @test1(* %t) {
%0:
  %tc = ptrtoint * %t to i32
  %ta = add i32 %tc, 32
  %tv = int2ptr i32 %ta to *
  ret * %tv
}
=>
define * @test1(* %t) {
%0:
  %tc = ptrtoint * %t to i32
  %ta = add i32 %tc, 32
  %tv = int2ptr i32 %ta to *
  ret * %tv
}
Transformation doesn't verify!
ERROR: Invalid expr
ERROR: The program uses the following unsupported features: inttoptr


----------------------------------------
define i1 @test2(* %a, * %b) {
%0:
  %ta = ptrtoint * %a to i32
  %tb = ptrtoint * %b to i32
  %r = icmp eq i32 %ta, %tb
  ret i1 %r
}
=>
define i1 @test2(* %a, * %b) {
%0:
  %r = icmp eq * %a, %b
  ret i1 %r
}
Transformation doesn't verify!
ERROR: Value mismatch

Example:
* %a = null
* %b = pointer(non-local, block_id=2, offset=-8)

Source:
i32 %ta = #x00000000 (0)
i32 %tb = #x00000000 (0)
i1 %r = #x1 (1)

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0	address: 0
Block 1 >	size: 573770305	align: 2	alloc type: 0	address: 671088672
Block 2 >	size: 443177	align: 0	alloc type: 0	address: 8

Target:
i1 %r = #x0 (0)
Source value: #x1 (1)
Target value: #x0 (0)


------------------- SMT STATS -------------------
Num queries: 4
Num invalid: 1
Num skips:   0
Num trivial: 6 (60.0%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     3 (75.0%)
Num UNSAT:   1 (25.0%)

stderr:

+ : 'RUN: at line 3'
+ /home/nlopes/alive2/build/opt-alive.sh -instcombine -S
+ /home/nlopes/llvm/build/bin/FileCheck --allow-unused-prefixes=false /home/nlopes/llvm/llvm/test/Transforms/InstCombine/cast_ptr.ll

Alive2: Transform doesn't verify; aborting!
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/nlopes/llvm/build/bin/FileCheck --allow-unused-prefixes=false /home/nlopes/llvm/llvm/test/Transforms/InstCombine/cast_ptr.ll

 

<-- Back