This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; CHECK: @PR23753_b = global i8* getelementptr (i8, i8* @PR23753_a, i64 ptrtoint (i8* @PR23753_a to i64))
; Verify that inrange on an index inhibits over-indexed getelementptr folding.
@nestedarray = global [2 x [4 x i8*]] zeroinitializer
; CHECK: @nestedarray.1 = alias i8*, getelementptr inbounds ([2 x [4 x i8*]], [2 x [4 x i8*]]* @nestedarray, inrange i32 0, i64 1, i32 0)
@nestedarray.1 = aliasi8*, getelementptrinbounds ([2 x [4 x i8*]], [2 x [4 x i8*]]* @nestedarray, inrange i320, i320, i324)
; CHECK: @nestedarray.2 = alias i8*, getelementptr inbounds ([2 x [4 x i8*]], [2 x [4 x i8*]]* @nestedarray, i32 0, inrange i32 0, i32 4)
@nestedarray.2 = aliasi8*, getelementptrinbounds ([2 x [4 x i8*]], [2 x [4 x i8*]]* @nestedarray, i320, inrange i320, i324)
; CHECK: @nestedarray.3 = alias i8*, getelementptr inbounds ([2 x [4 x i8*]], [2 x [4 x i8*]]* @nestedarray, i32 0, inrange i32 0, i32 0)
@nestedarray.3 = aliasi8*, getelementptrinbounds ([4 x i8*], [4 x i8*]* getelementptrinbounds ([2 x [4 x i8*]], [2 x [4 x i8*]]* @nestedarray, i320, inrange i320), i320, i320)
; CHECK: @nestedarray.4 = alias i8*, getelementptr inbounds ([2 x [4 x i8*]], [2 x [4 x i8*]]* @nestedarray, i32 0, i32 1, i32 0)
@nestedarray.4 = aliasi8*, getelementptrinbounds ([4 x i8*], [4 x i8*]* getelementptrinbounds ([2 x [4 x i8*]], [2 x [4 x i8*]]* @nestedarray, i320, inrange i320), i321, i320)
; CHECK: @nestedarray.5 = alias i8*, getelementptr inbounds ([2 x [4 x i8*]], [2 x [4 x i8*]]* @nestedarray, inrange i32 0, i32 1, i32 0)
@nestedarray.5 = aliasi8*, getelementptrinbounds ([4 x i8*], [4 x i8*]* getelementptrinbounds ([2 x [4 x i8*]], [2 x [4 x i8*]]* @nestedarray, inrange i320, i320), i321, i320)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters