Test Failure: Transforms/InstCombine/struct-assign-tbaa-new.ll

Test source: git

Log:

Source: <stdin>

----------------------------------------
define void @test1(* %a1, * %a2) {
%entry:
  %0 = bitcast * %a1 to *
  %1 = bitcast * %a2 to *
  memcpy * %0 align 4, * %1 align 4, i64 4
  ret void
}
=>
define void @test1(* %a1, * %a2) {
%entry:
  %0 = bitcast * %a2 to *
  %1 = bitcast * %a1 to *
  %2 = load i32, * %0, align 4
  store i32 %2, * %1, align 4
  ret void
}
Transformation doesn't verify!
ERROR: Mismatch in memory

Example:
* %a1 = pointer(non-local, block_id=1, offset=0)
* %a2 = pointer(non-local, block_id=1, offset=0)

Source:
* %0 = pointer(non-local, block_id=1, offset=0)
* %1 = pointer(non-local, block_id=1, offset=0)

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0
Block 1 >	size: 4	align: 16	alloc type: 0
Block 2 >	align: 2	alloc type: 0

Target:
* %0 = pointer(non-local, block_id=1, offset=0)
* %1 = pointer(non-local, block_id=1, offset=0)
i32 %2 = poison

Mismatch in pointer(non-local, block_id=1, offset=0)
Source value: null, byte offset=0
Target value: poison


------------------- SMT STATS -------------------
Num queries: 3
Num invalid: 0
Num skips:   0
Num trivial: 10 (76.9%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     2 (66.7%)
Num UNSAT:   1 (33.3%)
Alive2: Transform doesn't verify; aborting!

stderr:

+ : 'RUN: at line 1'
+ /home/nlopes/alive2/build/opt-alive.sh -instcombine -S
+ /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/struct-assign-tbaa-new.ll

FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/struct-assign-tbaa-new.ll

 

<-- Back