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

Side by Side Diff: tests_lit/llvm2ice_tests/arith-opt.ll

Issue 1044423006: WIP: Add ARM32 add/ldr/str instructions and operand types. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: rebase Created 5 years, 7 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/IceTargetLoweringARM32.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
1 ; This is a very early test that just checks the representation of i32 1 ; This is a very early test that just checks the representation of i32
2 ; arithmetic instructions. No assembly tests are done. 2 ; arithmetic instructions. No assembly tests are done.
3 3
4 ; REQUIRES: allow_dump 4 ; REQUIRES: allow_dump
5 5
6 ; RUN: %p2i -i %s --filetype=asm --args --verbose inst -threads=0 | FileCheck %s 6 ; RUN: %p2i -i %s --filetype=asm --args --verbose inst -threads=0 | FileCheck %s
7 7
8 ; TODO(jvoung): Enable test when it does not llvm::report_fatal_error. 8 ; TODO(jvoung): Enable test when it does not llvm::report_fatal_error.
9 ; The test runner wrappers don't handle error expected errors 9 ; The test runner wrappers don't handle error expected errors
10 ; so we can't just "not" the command. 10 ; so we can't just "not" the command.
11 ; RUIN: %if --need=target_ARM32 --command %p2i -i %s --filetype=asm \ 11 ; RUIN: %if --need=target_ARM32 --command %p2i -i %s --filetype=asm \
12 ; RUIN: --args --verbose inst -threads=0 --target arm32 \ 12 ; RUIN: --args --verbose inst -threads=0 --target arm32 \
13 ; RUIN: | %if --need=target_ARM32 --command FileCheck %s --check-prefix ARM32 13 ; RUIN: | %if --need=target_ARM32 --command FileCheck %s --check-prefix ARM32
14 14
15
15 define i32 @Add(i32 %a, i32 %b) { 16 define i32 @Add(i32 %a, i32 %b) {
16 ; CHECK: define i32 @Add 17 ; CHECK: define i32 @Add
17 entry: 18 entry:
18 %add = add i32 %b, %a 19 %add = add i32 %b, %a
19 ; CHECK: add 20 ; CHECK: add
20 tail call void @Use(i32 %add) 21 tail call void @Use(i32 %add)
21 ; CHECK: call Use 22 ; CHECK: call Use
22 ret i32 %add 23 ret i32 %add
23 } 24 }
24 25
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 119
119 ; Check for a valid addressing mode in the x86-32 mul instruction when 120 ; Check for a valid addressing mode in the x86-32 mul instruction when
120 ; the second source operand is an immediate. 121 ; the second source operand is an immediate.
121 define i64 @MulImm() { 122 define i64 @MulImm() {
122 entry: 123 entry:
123 %mul = mul i64 3, 4 124 %mul = mul i64 3, 4
124 ret i64 %mul 125 ret i64 %mul
125 } 126 }
126 ; CHECK-LABEL: MulImm 127 ; CHECK-LABEL: MulImm
127 ; CHECK-NOT: mul {{[0-9]+}} 128 ; CHECK-NOT: mul {{[0-9]+}}
OLDNEW
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698