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 ; TODO(kschimpf) Find out why lc2i is needed. | |
4 ; RUN: %p2i -i %s --args -O2 --verbose none \ | 3 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 4 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
6 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 5 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
7 ; RUN: %lc2i -i %s --args -Om1 --verbose none \ | 6 ; RUN: %p2i -i %s --args -Om1 --verbose none \ |
8 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 7 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
9 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 8 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
10 ; RUN: %p2i -i %s --args -O2 -mattr=sse4.1 --verbose none \ | 9 ; RUN: %p2i -i %s --args -O2 -mattr=sse4.1 --verbose none \ |
11 ; 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 \ |
12 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 11 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
13 ; RUN: %lc2i -i %s --args -Om1 -mattr=sse4.1 --verbose none \ | 12 ; RUN: %p2i -i %s --args -Om1 -mattr=sse4.1 --verbose none \ |
14 ; 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 \ |
15 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 14 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
16 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s | 15 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s |
17 ; RUN: %lc2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s | 16 ; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s |
18 | 17 |
19 define i32 @undef_i32() { | 18 define i32 @undef_i32() { |
20 entry: | 19 entry: |
21 ret i32 undef | 20 ret i32 undef |
22 ; CHECK-LABEL: undef_i32 | 21 ; CHECK-LABEL: undef_i32 |
23 ; CHECK: mov eax, 0 | 22 ; CHECK: mov eax, 0 |
24 } | 23 } |
25 | 24 |
26 define i64 @undef_i64() { | 25 define i64 @undef_i64() { |
27 entry: | 26 entry: |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 define <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond, <4 x float> %a) { | 283 define <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond, <4 x float> %a) { |
285 entry: | 284 entry: |
286 %val = select <4 x i1> %cond, <4 x float> %a, <4 x float> undef | 285 %val = select <4 x i1> %cond, <4 x float> %a, <4 x float> undef |
287 ret <4 x float> %val | 286 ret <4 x float> %val |
288 ; CHECK-LABEL: vector_select_v4f32_arg2 | 287 ; CHECK-LABEL: vector_select_v4f32_arg2 |
289 ; CHECK: pxor | 288 ; CHECK: pxor |
290 } | 289 } |
291 | 290 |
292 ; ERRORS-NOT: ICE translation error | 291 ; ERRORS-NOT: ICE translation error |
293 ; DUMP-NOT: SZ | 292 ; DUMP-NOT: SZ |
OLD | NEW |