mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 10:17:37 +00:00
ad9ad7c827
call, we should treat "i64 zext" as the start of a constant expr, but "i64 0 zext" as an argument with an obsolete attribute on it (this form is already tested by test/Assembler/2007-07-30-AutoUpgradeZextSext.ll). Make the autoupgrade logic more discerning to avoid treating "i64 zext" as an old-style attribute, causing us to reject a valid constant expr. This fixes PR3876. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67682 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
253 B
LLVM
12 lines
253 B
LLVM
; RUN: llvm-as < %s | llvm-dis
|
|
; PR3876
|
|
@gdtr = external global [0 x i8]
|
|
|
|
define void @test() {
|
|
call zeroext i1 @paging_map(i64 zext (i32 and (i32 ptrtoint ([0 x i8]* @gdtr to i32), i32 -4096) to i64))
|
|
ret void
|
|
}
|
|
|
|
declare zeroext i1 @paging_map(i64)
|
|
|