Eliminate more uses of llvm-as and llvm-dis.
[oota-llvm.git] / test / CodeGen / Blackfin / burg.ll
1 ; RUN: llc < %s -march=bfin -verify-machineinstrs > %t
2
3         %IntList = type %struct.intlist*
4         %ReadFn = type i32 ()*
5         %YYSTYPE = type { %IntList }
6         %struct.intlist = type { i32, %IntList }
7 @yyval = external global %YYSTYPE               ; <%YYSTYPE*> [#uses=1]
8
9 define i32 @yyparse() {
10 bb0:
11         %reg254 = load i16* null                ; <i16> [#uses=1]
12         %reg254-idxcast = sext i16 %reg254 to i64               ; <i64> [#uses=1]
13         %reg254-idxcast-scale = mul i64 %reg254-idxcast, -1             ; <i64> [#uses=1]
14         %reg254-idxcast-scale-offset = add i64 %reg254-idxcast-scale, 1         ; <i64> [#uses=1]
15         %reg261.idx1 = getelementptr %YYSTYPE* null, i64 %reg254-idxcast-scale-offset, i32 0            ; <%IntList*> [#uses=1]
16         %reg261 = load %IntList* %reg261.idx1           ; <%IntList> [#uses=1]
17         store %IntList %reg261, %IntList* getelementptr (%YYSTYPE* @yyval, i64 0, i32 0)
18         unreachable
19 }