Test Failure: Transforms/InstSimplify/gep.ll

Test source: git

Log:

Source: <stdin>
ERROR: Unsupported type: <vscale x 4 x i32*>
ERROR: Unsupported type: <vscale x 4 x float*>
ERROR: Unsupported type: <vscale x 2 x i64*>

----------------------------------------
define * @test1(* %b, * %e) {
%0:
  %e_ptr = ptrtoint * %e to i64
  %b_ptr = ptrtoint * %b to i64
  %sub = sub i64 %e_ptr, %b_ptr
  %sdiv = sdiv exact i64 %sub, 7
  %gep = gep inbounds * %b, 7 x i64 %sdiv
  ret * %gep
}
=>
define * @test1(* %b, * %e) {
%0:
  ret * %e
}
Transformation doesn't verify!
ERROR: Value mismatch

Example:
* %b = pointer(non-local, block_id=1, offset=1867874577062838273)
* %e = pointer(non-local, block_id=2, offset=-2756202941884923512)

Source:
i64 %e_ptr = #x1fc00008021007fa (2287828645098555386)
i64 %b_ptr = #x1fec06080ad04001 (2300220141290405889)
i64 %sub = #xffd3f9fff73fc7f9 (18434352577517701113, -12391496191850503)
i64 %sdiv = #xfff9b5fffebff7ff (18444973859967858687, -1770213741692929)
* %gep = pointer(non-local, block_id=1, offset=1855483080870987770)

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0	address: 0
Block 1 >	size: 1873497444986126336	align: 2	alloc type: 0	address: 432345564227567616
Block 2 >	size: 4071254059773900360	align: 4	alloc type: 0	address: 5044031586983478898

Target:
Source value: pointer(non-local, block_id=1, offset=1855483080870987770)
Target value: pointer(non-local, block_id=2, offset=-2756202941884923512)


------------------- SMT STATS -------------------
Num queries: 4
Num invalid: 0
Num skips:   0
Num trivial: 2 (33.3%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     2 (50.0%)
Num UNSAT:   2 (50.0%)

stderr:

+ : 'RUN: at line 2'
+ /home/nlopes/alive2/build/opt-alive.sh -S -instsimplify
+ /home/nlopes/llvm/build/bin/FileCheck --allow-unused-prefixes=false /home/nlopes/llvm/llvm/test/Transforms/InstSimplify/gep.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/InstSimplify/gep.ll

 

<-- Back