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

Side by Side Diff: tests_lit/llvm2ice_tests/address-mode-opt.ll

Issue 467103004: Subzero: Convert lit test llvm-mc -arch arguments to full -triple. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: x Created 6 years, 4 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 | « tests_lit/llvm2ice_tests/64bit.pnacl.ll ('k') | tests_lit/llvm2ice_tests/alloc.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; This file checks support for address mode optimization. 1 ; This file checks support for address mode optimization.
2 2
3 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s 3 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s
4 ; RUN: %llvm2ice -O2 --verbose none %s \ 4 ; RUN: %llvm2ice -O2 --verbose none %s \
5 ; RUN: | llvm-mc -arch=x86 -x86-asm-syntax=intel -filetype=obj 5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj
6 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 6 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
7 7
8 define float @load_arg_plus_200000(float* %arg) { 8 define float @load_arg_plus_200000(float* %arg) {
9 entry: 9 entry:
10 %arg.int = ptrtoint float* %arg to i32 10 %arg.int = ptrtoint float* %arg to i32
11 %addr.int = add i32 %arg.int, 200000 11 %addr.int = add i32 %arg.int, 200000
12 %addr.ptr = inttoptr i32 %addr.int to float* 12 %addr.ptr = inttoptr i32 %addr.int to float*
13 %addr.load = load float* %addr.ptr, align 4 13 %addr.load = load float* %addr.ptr, align 4
14 ret float %addr.load 14 ret float %addr.load
15 ; CHECK-LABEL: load_arg_plus_200000: 15 ; CHECK-LABEL: load_arg_plus_200000:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 %addr1.int = add i32 12, %arg.int 55 %addr1.int = add i32 12, %arg.int
56 %addr2.int = sub i32 %addr1.int, 4 56 %addr2.int = sub i32 %addr1.int, 4
57 %addr2.ptr = inttoptr i32 %addr2.int to float* 57 %addr2.ptr = inttoptr i32 %addr2.int to float*
58 %addr2.load = load float* %addr2.ptr, align 4 58 %addr2.load = load float* %addr2.ptr, align 4
59 ret float %addr2.load 59 ret float %addr2.load
60 ; CHECK-LABEL: address_mode_opt_chaining: 60 ; CHECK-LABEL: address_mode_opt_chaining:
61 ; CHECK: movss xmm0, dword ptr [eax+8] 61 ; CHECK: movss xmm0, dword ptr [eax+8]
62 } 62 }
63 63
64 ; ERRORS-NOT: ICE translation error 64 ; ERRORS-NOT: ICE translation error
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/64bit.pnacl.ll ('k') | tests_lit/llvm2ice_tests/alloc.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698