1; RUN: llvm-as < %s | llvm-dis
2; RUN: verify-uselistorder %s
3; PR3876
4@gdtr = external global [0 x i8]
5
6define void @test() {
7	call zeroext i1 @paging_map(i64 zext (i32 and (i32 ptrtoint ([0 x i8]* @gdtr to i32), i32 -4096) to i64))
8	ret void
9}
10
11declare zeroext i1 @paging_map(i64)
12
13