Test Failure: Transforms/CodeGenPrepare/X86/cttz-ctlz.ll

Test source: git

Log:

Source: <stdin>

----------------------------------------
define i64 @cttz(i64 %A) {
%entry:
  %z = cttz i64 %A, 0
  ret i64 %z
}
=>
define i64 @cttz(i64 %A) {
%entry:
  %cmpz = icmp eq i64 %A, 0
  br i1 %cmpz, label %cond.end, label %cond.false

%cond.false:
  %z = cttz i64 %A, 1
  br label %cond.end

%cond.end:
  %ctz = phi i64 [ 64, %entry ], [ %z, %cond.false ]
  ret i64 %ctz
}
Transformation doesn't verify!
ERROR: Source is more defined than target

Example:
i64 %A = undef

Source:
i64 %z = #x0000000000000040 (64)	[based on undef value]

Target:
i1 %cmpz = any
UB triggered on br



------------------- SMT STATS -------------------
Num queries: 6
Num invalid: 0
Num skips:   0
Num trivial: 3 (33.3%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     5 (83.3%)
Num UNSAT:   1 (16.7%)
Alive2: Transform doesn't verify; aborting!

stderr:

+ : 'RUN: at line 1'
+ /home/nuno/llvm/build/bin/FileCheck /home/nuno/llvm/llvm/test/Transforms/CodeGenPrepare/X86/cttz-ctlz.ll --check-prefix=SLOW
+ /home/nuno/alive2/build/opt-alive.sh -S -codegenprepare

FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/nuno/llvm/build/bin/FileCheck /home/nuno/llvm/llvm/test/Transforms/CodeGenPrepare/X86/cttz-ctlz.ll --check-prefix=SLOW

 

<-- Back