aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll
blob: a86fe63edf759b11e2a094e7f7ad7fe808fa7862 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llvm-as %s -o /dev/null
; RUN: verify-uselistorder %s

define i32* @t1({ float, i32 }* %X) {
        %W = getelementptr { float, i32 }* %X, i32 20, i32 1            ; <i32*> [#uses=0]
        %X.upgrd.1 = getelementptr { float, i32 }* %X, i64 20, i32 1            ; <i32*> [#uses=0]
        %Y = getelementptr { float, i32 }* %X, i64 20, i32 1            ; <i32*> [#uses=1]
        %Z = getelementptr { float, i32 }* %X, i64 20, i32 1            ; <i32*> [#uses=0]
        ret i32* %Y
}