Test Failure: Transforms/InstSimplify/ptrmask.ll

Test source: git

Log:

Source: <stdin>
-- 1. ModuleToFunctionPassAdaptor
-- 1. PassManager<Function> : Skipping NOP
-- 2. InstSimplifyPass

----------------------------------------
define ptr @ptrmask_simplify_poison_mask(ptr %p) {
#0:
  %r = ptrmask ptr %p, i64 poison
  ret ptr %r
}
Transformation seems to be correct! (syntactically equal)

-- 3. InstSimplifyPass

----------------------------------------
define ptr @ptrmask_simplify_poison_mask(ptr %p) {
#0:
  %r = ptrmask ptr %p, i64 poison
  ret ptr %r
}
=>
define ptr @ptrmask_simplify_poison_mask(ptr %p) {
#0:
  ret ptr poison
}
Transformation seems to be correct!

-- 4. PassManager<Function> : Skipping NOP
-- 5. PassManager<Function> : Skipping NOP
-- 6. InstSimplifyPass
-- 7. InstSimplifyPass
-- 8. PassManager<Function> : Skipping NOP
-- 9. PassManager<Function> : Skipping NOP
-- 10. InstSimplifyPass
-- 11. InstSimplifyPass
-- 12. PassManager<Function> : Skipping NOP
-- 13. PassManager<Function> : Skipping NOP
-- 14. InstSimplifyPass

----------------------------------------
define <2 x ptr> @ptrmask_simplify_undef_and_ones_vec(<2 x ptr> %p) {
#0:
  %r = ptrmask <2 x ptr> %p, <2 x i64> { undef, -1 }
  ret <2 x ptr> %r
}
Transformation seems to be correct! (syntactically equal)

-- 15. InstSimplifyPass

----------------------------------------
define <2 x ptr> @ptrmask_simplify_undef_and_ones_vec(<2 x ptr> %p) {
#0:
  %r = ptrmask <2 x ptr> %p, <2 x i64> { undef, -1 }
  ret <2 x ptr> %r
}
=>
define <2 x ptr> @ptrmask_simplify_undef_and_ones_vec(<2 x ptr> %p) {
#0:
  ret <2 x ptr> %p
}
Transformation doesn't verify! (unsound)
ERROR: Value mismatch

Example:
<2 x ptr> %p = < pointer(non-local, block_id=0, offset=-2), null >

Source:
<2 x ptr> %r = < null	[based on undef value], null >

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0	alive: false	address: 0
Block 1 >	size: 0	align: 4	alloc type: 0	alive: true	address: 4
Block 2 >	size: 0	align: 1	alloc type: 0	alive: true	address: 9

Target:
Source value: < null, null >
Target value: < pointer(non-local, block_id=0, offset=-2), null >

Pass: InstSimplifyPass
Command line: '/home/nlopes/llvm/build/bin/opt' '-load=/home/nlopes/alive2/build/tv/tv.so' '-load-pass-plugin=/home/nlopes/alive2/build/tv/tv.so' '-tv-exit-on-error' '-passes=instsimplify' '-S' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats'
Wrote bitcode to: "/home/nlopes/alive2/build/logs/in_IVWt7eZ6_Wlns.bc"


------------------- SMT STATS -------------------
Num queries: 30
Num invalid: 0
Num skips:   0
Num trivial: 17 (36.2%)
Num timeout: 3 (10.0%)
Num errors:  0 (0.0%)
Num SAT:     20 (66.7%)
Num UNSAT:   7 (23.3%)
Alive2: Transform doesn't verify; aborting!

stderr:

RUN: at line 2: /home/nlopes/alive2/build/opt-alive.sh < /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/ptrmask.ll -passes=instsimplify -S | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/ptrmask.ll
+ /home/nlopes/alive2/build/opt-alive.sh -passes=instsimplify -S
+ /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/ptrmask.ll

FileCheck error: '<stdin>' is empty.
FileCheck command line:  /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/ptrmask.ll

 

<-- Back