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

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

Issue 600043002: Clean up run script to use for testing Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes for rebase from master. Created 6 years, 2 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/vector-arg.ll ('k') | tests_lit/llvm2ice_tests/vector-bitcast.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 test checks support for vector arithmetic. 1 ; This test checks support for vector arithmetic.
2 2
3 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer 3 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer
4 ; doesn't know how to symbolize non-section-local functions. 4 ; doesn't know how to symbolize non-section-local functions.
5 ; The newer LLVM 3.6 one does work, but watch out for other bugs. 5 ; The newer LLVM 3.6 one does work, but watch out for other bugs.
6 6
7 ; RUN: %llvm2ice -O2 --verbose none %s \ 7 ; RUN: %p2i -i %s -a -O2 --verbose none\
8 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s 8 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s
9 ; RUN: %llvm2ice -O2 --verbose none %s \ 9 ; RUN: %p2i -i %s -a -O2 --verbose none \
10 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 10 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \
11 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s 11 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s
12 ; RUN: %llvm2ice -Om1 --verbose none %s \ 12 ; RUN: %p2i -i %s -a -Om1 --verbose none \
13 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 13 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \
14 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s 14 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s
15 ; RUN: %llvm2ice -O2 -mattr=sse4.1 --verbose none %s \ 15 ; RUN: %p2i -i %s -a -O2 -mattr=sse4.1 --verbose none \
16 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 16 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \
17 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ 17 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \
18 ; RUN: | FileCheck --check-prefix=SSE41 %s 18 ; RUN: | FileCheck --check-prefix=SSE41 %s
19 ; RUN: %llvm2ice -Om1 -mattr=sse4.1 --verbose none %s \ 19 ; RUN: %p2i -i %s -a -Om1 -mattr=sse4.1 --verbose none \
20 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 20 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \
21 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ 21 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \
22 ; RUN: | FileCheck --check-prefix=SSE41 %s 22 ; RUN: | FileCheck --check-prefix=SSE41 %s
23 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 23 ; RUN: %p2i -i %s -a --verbose none | FileCheck --check-prefix=ERRORS %s
24 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s 24 ; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s
25 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
26 ; RUN: | FileCheck --check-prefix=DUMP %s
27 25
28 define <4 x float> @test_fadd(<4 x float> %arg0, <4 x float> %arg1) { 26 define <4 x float> @test_fadd(<4 x float> %arg0, <4 x float> %arg1) {
29 entry: 27 entry:
30 %res = fadd <4 x float> %arg0, %arg1 28 %res = fadd <4 x float> %arg0, %arg1
31 ret <4 x float> %res 29 ret <4 x float> %res
32 ; CHECK-LABEL: test_fadd: 30 ; CHECK-LABEL: test_fadd:
33 ; CHECK: addps 31 ; CHECK: addps
34 } 32 }
35 33
36 define <4 x float> @test_fsub(<4 x float> %arg0, <4 x float> %arg1) { 34 define <4 x float> @test_fsub(<4 x float> %arg0, <4 x float> %arg1) {
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 ret <4 x i32> %res 575 ret <4 x i32> %res
578 ; CHECK-LABEL: test_srem_v4i32: 576 ; CHECK-LABEL: test_srem_v4i32:
579 ; CHECK: idiv 577 ; CHECK: idiv
580 ; CHECK: idiv 578 ; CHECK: idiv
581 ; CHECK: idiv 579 ; CHECK: idiv
582 ; CHECK: idiv 580 ; CHECK: idiv
583 } 581 }
584 582
585 ; ERRORS-NOT: ICE translation error 583 ; ERRORS-NOT: ICE translation error
586 ; DUMP-NOT: SZ 584 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/vector-arg.ll ('k') | tests_lit/llvm2ice_tests/vector-bitcast.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698