Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: tests_lit/llvm2ice_tests/uncond_br.ll

Issue 1724643002: Subzero: Basic unconditional branch for Mips. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: changes suggested by stichnot Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceTargetLoweringMIPS32.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented)
2 ; once enough infrastructure is in. Also, switch to --filetype=obj
3 ; when possible.
4 ; RUN: %if --need=target_MIPS32 --need=allow_dump \
5 ; RUN: --command %p2i --filetype=asm --assemble \
6 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \
7 ; RUN: -allow-externally-defined-symbols \
8 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \
9 ; RUN: --command FileCheck --check-prefix MIPS32 %s
10
11 define internal void @uncond1(i32 %i) {
12 %1 = alloca i8, i32 4, align 4
13 %.bc = bitcast i8* %1 to i32*
14 store i32 %i, i32* %.bc, align 1
15 br label %target
16 ; <label>:target ; preds = %2, %0
Jim Stichnoth 2016/02/24 00:11:54 Just remove this comment.
rkotlerimgtec 2016/02/24 00:34:27 Done.
17 target:
18 %.bc1 = bitcast i8* %1 to i32*
19 %2 = load i32, i32* %.bc1, align 1
20 %3 = add i32 %2, 1
21 %.bc2 = bitcast i8* %1 to i32*
22 store i32 %3, i32* %.bc2, align 1
23 br label %target
24 }
25
26 ; MIPS32-LABEL: uncond1
27 ; MIPS32: b 8 <.Luncond1$target>
28 ; MIPS32: <.Luncond1$target>:
29 ; MIPS32: li
30 ; MIPS32: addu
31 ; MIPS32: b 8 <.Luncond1$target>
OLDNEW
« no previous file with comments | « src/IceTargetLoweringMIPS32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698