OLD | NEW |
1 ; This test checks that undef values are represented as zero. | 1 ; This test checks that undef values are represented as zero. |
2 | 2 |
3 ; RUN: %llvm2ice --verbose none %s | FileCheck %s | 3 ; RUN: %llvm2ice --verbose none %s | FileCheck %s |
4 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s | 4 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s |
5 ; RUN: %llvm2ice -mattr=sse4.1 --verbose none %s | FileCheck %s | 5 ; RUN: %llvm2ice -mattr=sse4.1 --verbose none %s | FileCheck %s |
6 ; RUN: %llvm2ice -mattr=sse4.1 -O2 --verbose none %s | FileCheck %s | 6 ; RUN: %llvm2ice -mattr=sse4.1 -O2 --verbose none %s | FileCheck %s |
7 ; RUN: %llvm2ice -O2 --verbose none %s \ | 7 ; RUN: %llvm2ice -O2 --verbose none %s \ |
8 ; RUN: | llvm-mc -arch=x86 -x86-asm-syntax=intel -filetype=obj | 8 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj |
9 ; RUN: %llvm2ice -Om1 --verbose none %s \ | 9 ; RUN: %llvm2ice -Om1 --verbose none %s \ |
10 ; RUN: | llvm-mc -arch=x86 -x86-asm-syntax=intel -filetype=obj | 10 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj |
11 ; RUN: %llvm2ice -mattr=sse4.1 -O2 --verbose none %s \ | 11 ; RUN: %llvm2ice -mattr=sse4.1 -O2 --verbose none %s \ |
12 ; RUN: | llvm-mc -arch=x86 -x86-asm-syntax=intel -filetype=obj | 12 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj |
13 ; RUN: %llvm2ice -mattr=sse4.1 -Om1 --verbose none %s \ | 13 ; RUN: %llvm2ice -mattr=sse4.1 -Om1 --verbose none %s \ |
14 ; RUN: | llvm-mc -arch=x86 -x86-asm-syntax=intel -filetype=obj | 14 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj |
15 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 15 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s |
16 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | 16 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s |
17 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ | 17 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ |
18 ; RUN: | FileCheck --check-prefix=DUMP %s | 18 ; RUN: | FileCheck --check-prefix=DUMP %s |
19 | 19 |
20 define i32 @undef_i32() { | 20 define i32 @undef_i32() { |
21 entry: | 21 entry: |
22 ret i32 undef | 22 ret i32 undef |
23 ; CHECK-LABEL: undef_i32: | 23 ; CHECK-LABEL: undef_i32: |
24 ; CHECK: mov eax, 0 | 24 ; CHECK: mov eax, 0 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 define <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond, <4 x float> %a) { | 285 define <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond, <4 x float> %a) { |
286 entry: | 286 entry: |
287 %val = select <4 x i1> %cond, <4 x float> %a, <4 x float> undef | 287 %val = select <4 x i1> %cond, <4 x float> %a, <4 x float> undef |
288 ret <4 x float> %val | 288 ret <4 x float> %val |
289 ; CHECK-LABEL: vector_select_v4f32_arg2: | 289 ; CHECK-LABEL: vector_select_v4f32_arg2: |
290 ; CHECK: pxor | 290 ; CHECK: pxor |
291 } | 291 } |
292 | 292 |
293 ; ERRORS-NOT: ICE translation error | 293 ; ERRORS-NOT: ICE translation error |
294 ; DUMP-NOT: SZ | 294 ; DUMP-NOT: SZ |
OLD | NEW |