2012-07-30 15:25:20 +08:00
|
|
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
2013-11-15 09:34:59 +08:00
|
|
|
; CHECK: addrspacecast
|
2012-07-30 15:25:20 +08:00
|
|
|
|
2014-06-06 09:20:28 +08:00
|
|
|
@base = internal unnamed_addr addrspace(3) global [16 x i32] zeroinitializer, align 16
|
2012-07-30 15:25:20 +08:00
|
|
|
declare void @foo(i32*)
|
|
|
|
|
|
|
|
define void @test() nounwind {
|
2015-03-14 02:20:45 +08:00
|
|
|
call void @foo(i32* getelementptr (i32, i32* addrspacecast ([16 x i32] addrspace(3)* @base to i32*), i64 2147483647)) nounwind
|
2012-07-30 15:25:20 +08:00
|
|
|
ret void
|
|
|
|
}
|