Test Failure: Transforms/InstCombine/store.ll

Test source: git

Comments: LLVM bug: removes store undef

Log:

Source: <stdin>
-- 1. ModuleToFunctionPassAdaptor
ERROR: Unsupported metadata: 1
ERROR: Unsupported instruction:   store atomic i32 0, ptr %p unordered, align 4
ERROR: Unsupported instruction:   store atomic i32 0, ptr %p unordered, align 4
ERROR: Unsupported instruction:   store atomic i32 0, ptr %p unordered, align 4
ERROR: Unsupported instruction:   store atomic i32 0, ptr %p unordered, align 4
ERROR: Unsupported instruction:   %v = load atomic i32, ptr %p unordered, align 4
ERROR: Unsupported instruction:   store atomic i32 %v, ptr %p unordered, align 4
ERROR: Unsupported instruction:   %v = load atomic i32, ptr %p unordered, align 4
ERROR: Unsupported instruction:   %v = load atomic i32, ptr %p unordered, align 4
ERROR: Unsupported instruction:   %v = load atomic i32, ptr %p seq_cst, align 4
ERROR: Unsupported instruction:   %v = load atomic volatile i32, ptr %p seq_cst, align 4
ERROR: Unsupported attribute: noalias
-- 1. PassManager<Function> : Skipping NOP
-- 2. InstCombinePass

----------------------------------------
define void @store_of_undef(ptr %P) {
#0:
  store i32 undef, ptr %P, align 4
  ret void
}
Transformation seems to be correct! (syntactically equal)

-- 3. InstCombinePass

----------------------------------------
define void @store_of_undef(ptr %P) {
#0:
  store i32 undef, ptr %P, align 4
  ret void
}
=>
define void @store_of_undef(ptr %P) {
#0:
  ret void
}
Transformation doesn't verify! (unsound)
ERROR: Mismatch in memory

Example:
ptr %P = pointer(non-local, block_id=1, offset=0) / Address=#x08

Source:

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

Target:

TARGET MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 4	alloc type: 0	alive: false	address: #x00
Block 1 >	size: 4	align: 1	alloc type: 4	alive: true	address: #x08

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

Pass: InstCombinePass
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=instcombine' '-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_yuR2UFNb_BbN8.bc"

------------------- SMT STATS -------------------
Num queries: 22
Num invalid: 0
Num skips:   0
Num trivial: 6 (21.4%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     15 (68.2%)
Num UNSAT:   7 (31.8%)
Alive2: Transform doesn't verify; aborting!

stderr:

Transforms/InstCombine/store.ll' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
/home/nlopes/alive2/build/opt-alive.sh < /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/store.ll -passes=instcombine -S | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/store.ll
# executed command: /home/nlopes/alive2/build/opt-alive.sh -passes=instcombine -S
# .---command stderr------------
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/store.ll
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/store.ll
# `-----------------------------
# error: command failed with exit status: 2

--

 

<-- Back