OLD | NEW |
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: %p2i -i %s -a -O2 --verbose none\ | 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: %p2i -i %s -a -O2 --verbose none \ | 9 ; RUN: %p2i -i %s -a -O2 --verbose none \ |
10 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 10 ; RUN: | llvm-mc -triple=i686-none-nacl -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: %p2i -i %s -a -Om1 --verbose none \ | 12 ; RUN: %p2i -i %s -a -Om1 --verbose none \ |
13 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 13 ; RUN: | llvm-mc -triple=i686-none-nacl -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: %p2i -i %s -a -O2 -mattr=sse4.1 --verbose none \ | 15 ; RUN: %p2i -i %s -a -O2 -mattr=sse4.1 --verbose none \ |
16 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 16 ; RUN: | llvm-mc -triple=i686-none-nacl -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: %p2i -i %s -a -Om1 -mattr=sse4.1 --verbose none \ | 19 ; RUN: %p2i -i %s -a -Om1 -mattr=sse4.1 --verbose none \ |
20 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 20 ; RUN: | llvm-mc -triple=i686-none-nacl -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: %p2i -i %s -a --verbose none | FileCheck --check-prefix=ERRORS %s | |
24 | 23 |
25 define <4 x float> @test_fadd(<4 x float> %arg0, <4 x float> %arg1) { | 24 define <4 x float> @test_fadd(<4 x float> %arg0, <4 x float> %arg1) { |
26 entry: | 25 entry: |
27 %res = fadd <4 x float> %arg0, %arg1 | 26 %res = fadd <4 x float> %arg0, %arg1 |
28 ret <4 x float> %res | 27 ret <4 x float> %res |
29 ; CHECK-LABEL: test_fadd: | 28 ; CHECK-LABEL: test_fadd: |
30 ; CHECK: addps | 29 ; CHECK: addps |
31 } | 30 } |
32 | 31 |
33 define <4 x float> @test_fsub(<4 x float> %arg0, <4 x float> %arg1) { | 32 define <4 x float> @test_fsub(<4 x float> %arg0, <4 x float> %arg1) { |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 define <4 x i32> @test_srem_v4i32(<4 x i32> %arg0, <4 x i32> %arg1) { | 570 define <4 x i32> @test_srem_v4i32(<4 x i32> %arg0, <4 x i32> %arg1) { |
572 entry: | 571 entry: |
573 %res = srem <4 x i32> %arg0, %arg1 | 572 %res = srem <4 x i32> %arg0, %arg1 |
574 ret <4 x i32> %res | 573 ret <4 x i32> %res |
575 ; CHECK-LABEL: test_srem_v4i32: | 574 ; CHECK-LABEL: test_srem_v4i32: |
576 ; CHECK: idiv | 575 ; CHECK: idiv |
577 ; CHECK: idiv | 576 ; CHECK: idiv |
578 ; CHECK: idiv | 577 ; CHECK: idiv |
579 ; CHECK: idiv | 578 ; CHECK: idiv |
580 } | 579 } |
581 | |
582 ; ERRORS-NOT: ICE translation error | |
583 ; DUMP-NOT: SZ | |
OLD | NEW |