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