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

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

Issue 2051713002: [Subzero][MIPS32] Adds prolog instructions for MIPS32 (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Changes related to calling convention Created 4 years, 6 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
OLDNEW
1 ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented) 1 ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented)
2 ; once enough infrastructure is in. Also, switch to --filetype=obj 2 ; once enough infrastructure is in. Also, switch to --filetype=obj
3 ; when possible. 3 ; when possible.
4 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ 4 ; RUN: %if --need=target_MIPS32 --need=allow_dump \
5 ; RUN: --command %p2i --filetype=asm --assemble \ 5 ; RUN: --command %p2i --filetype=asm --assemble \
6 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \ 6 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \
7 ; RUN: -allow-externally-defined-symbols \ 7 ; RUN: -allow-externally-defined-symbols \
8 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ 8 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \
9 ; RUN: --command FileCheck --check-prefix MIPS32 %s 9 ; RUN: --command FileCheck --check-prefix MIPS32 %s
10 10
11 define internal void @uncond1(i32 %i) { 11 define internal void @uncond1(i32 %i) {
12 %1 = alloca i8, i32 4, align 4 12 %1 = alloca i8, i32 4, align 4
13 %.bc = bitcast i8* %1 to i32* 13 %.bc = bitcast i8* %1 to i32*
14 store i32 %i, i32* %.bc, align 1 14 store i32 %i, i32* %.bc, align 1
15 br label %target 15 br label %target
16 target: 16 target:
17 %.bc1 = bitcast i8* %1 to i32* 17 %.bc1 = bitcast i8* %1 to i32*
18 %2 = load i32, i32* %.bc1, align 1 18 %2 = load i32, i32* %.bc1, align 1
19 %3 = add i32 %2, 1 19 %3 = add i32 %2, 1
20 %.bc2 = bitcast i8* %1 to i32* 20 %.bc2 = bitcast i8* %1 to i32*
21 store i32 %3, i32* %.bc2, align 1 21 store i32 %3, i32* %.bc2, align 1
22 br label %target 22 br label %target
23 } 23 }
24 24
25 ; MIPS32-LABEL: uncond1 25 ; MIPS32-LABEL: uncond1
26 ; MIPS32: b {{[0-9]+}} <.Luncond1$target> 26 ; MIPS32: b {{[0-9a-f]+}} <.Luncond1$target>
27 ; MIPS32: <.Luncond1$target>: 27 ; MIPS32: <.Luncond1$target>:
28 ; MIPS32: li 28 ; MIPS32: li
29 ; MIPS32: addu 29 ; MIPS32: addu
30 ; MIPS32: b {{[0-9]+}} <.Luncond1$target> 30 ; MIPS32: b {{[0-9a-f]+}} <.Luncond1$target>
OLDNEW
« src/IceTargetLoweringMIPS32.cpp ('K') | « src/IceTargetLoweringMIPS32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698