Test Failure: Transforms/InstCombine/gep-custom-dl.ll

Test source: git

Log:

Source: <stdin>
ERROR: Unsupported instruction:   %A = bitcast i8 addrspace(1)* getelementptr inbounds ([1000 x i8], [1000 x i8] addrspace(1)* @X_as1, i64 1, i64 0) to i8 addrspace(1)*

----------------------------------------
define * @test1(* %I) {
%0:
  %A = gep * %I, 4 x i8 17
  %B = gep * %A, 4 x i16 4
  ret * %B
}
=>
define * @test1(* %I) {
%0:
  %B = gep * %I, 4 x i32 21
  ret * %B
}
Transformation seems to be correct!


----------------------------------------
define * @test2(* %I) {
%0:
  %A = gep * %I, 4 x i32 1
  %B = gep * %A, 4 x i32 0, 1 x i64 0
  ret * %B
}
=>
define * @test2(* %I) {
%0:
  %B = gep * %I, 4 x i32 1, 1 x i64 0
  ret * %B
}
Transformation seems to be correct!


----------------------------------------
@Global = global 10 bytes, align 1

define void @test3(i8 %B) {
%0:
  %A = gep * @Global, 10 x i32 0, 1 x i32 4
  store i8 %B, * %A, align 1
  ret void
}
=>
@Global = global 10 bytes, align 1

define void @test3(i8 %B) {
%0:
  %__constexpr_0 = gep inbounds * @Global, 10 x i32 0, 1 x i32 4
  store i8 %B, * %__constexpr_0, align 1
  ret void
}
Transformation seems to be correct!


----------------------------------------
define * @test4(* %I, i32 %C, i32 %D) {
%0:
  %A = gep * %I, 4 x i32 %C
  %B = gep * %A, 4 x i32 %D
  ret * %B
}
=>
define * @test4(* %I, i32 %C, i32 %D) {
%0:
  %A = gep * %I, 4 x i32 %C
  %B = gep * %A, 4 x i32 %D
  ret * %B
}
Transformation seems to be correct! (syntactically equal)


----------------------------------------
define i1 @test5(* %x, * %y) {
%0:
  %tmp.1 = gep * %x, 8 x i32 0, 1 x i64 4
  %tmp.3 = gep * %y, 8 x i32 0, 1 x i64 4
  %tmp.4 = icmp eq * %tmp.1, %tmp.3
  ret i1 %tmp.4
}
=>
define i1 @test5(* %x, * %y) {
%0:
  %tmp.4 = icmp eq * %x, %y
  ret i1 %tmp.4
}
Transformation doesn't verify!
ERROR: Target's return value is more undefined

Example:
* %x = pointer(non-local, block_id=1, offset=102)
* %y = undef

Source:
* %tmp.1 = pointer(non-local, block_id=1, offset=106)
* %tmp.3 = pointer(non-local, block_id=0, offset=4)	[based on undef value]
i1 %tmp.4 = #x0 (0)

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0	address: 0
Block 1 >	size: 130	align: 8589934592	alloc type: 0	address: 22
Block 2 >	size: 0	align: 16	alloc type: 0	address: 2

Target:
i1 %tmp.4 = #x1 (1)
Source value: #x0 (0)
Target value: #x1 (1)


------------------- SMT STATS -------------------
Num queries: 11
Num invalid: 0
Num skips:   0
Num trivial: 24 (68.6%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     6 (54.5%)
Num UNSAT:   5 (45.5%)
Alive2: Transform doesn't verify; aborting!

stderr:

+ : 'RUN: at line 2'
+ /home/nlopes/alive2/build/opt-alive.sh -instcombine -S
+ /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/gep-custom-dl.ll

FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/gep-custom-dl.ll

 

<-- Back