| 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 --assemble --disassemble --args -O2 --verbose none \ |
| 4 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 4 ; RUN: | FileCheck %s |
| 5 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 5 ; RUN: %p2i -i %s --assemble --disassemble --args -Om1 --verbose none \ |
| 6 ; RUN: %p2i -i %s --args -Om1 --verbose none \ | 6 ; RUN: | FileCheck %s |
| 7 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 7 ; RUN: %p2i -i %s --assemble --disassemble --args -O2 -mattr=sse4.1 --verbose \ |
| 8 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 8 ; RUN: none \ |
| 9 ; RUN: %p2i -i %s --args -O2 -mattr=sse4.1 --verbose none \ | 9 ; RUN: | FileCheck %s |
| 10 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 10 ; RUN: %p2i -i %s --assemble --disassemble --args -Om1 -mattr=sse4.1 --verbose \ |
| 11 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 11 ; RUN: none \ |
| 12 ; RUN: %p2i -i %s --args -Om1 -mattr=sse4.1 --verbose none \ | 12 ; RUN: | FileCheck %s |
| 13 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | |
| 14 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | |
| 15 | 13 |
| 16 define i32 @undef_i32() { | 14 define i32 @undef_i32() { |
| 17 entry: | 15 entry: |
| 18 ret i32 undef | 16 ret i32 undef |
| 19 ; CHECK-LABEL: undef_i32 | 17 ; CHECK-LABEL: undef_i32 |
| 20 ; CHECK: mov eax, 0 | 18 ; CHECK: mov eax,0 |
| 21 } | 19 } |
| 22 | 20 |
| 23 define i64 @undef_i64() { | 21 define i64 @undef_i64() { |
| 24 entry: | 22 entry: |
| 25 ret i64 undef | 23 ret i64 undef |
| 26 ; CHECK-LABEL: undef_i64 | 24 ; CHECK-LABEL: undef_i64 |
| 27 ; CHECK-DAG: mov eax, 0 | 25 ; CHECK-DAG: mov eax, 0 |
| 28 ; CHECK-DAG: mov edx, 0 | 26 ; CHECK-DAG: mov edx, 0 |
| 29 ; CHECK: ret | 27 ; CHECK: ret |
| 30 } | 28 } |
| 31 | 29 |
| 32 define float @undef_float() { | 30 define float @undef_float() { |
| 33 entry: | 31 entry: |
| 34 ret float undef | 32 ret float undef |
| 35 ; CHECK-LABEL: undef_float | 33 ; CHECK-LABEL: undef_float |
| 36 ; CHECK: fld dword ptr [.L$float$0] | 34 ; CHECK: fld DWORD PTR [.L$float$0] |
| 37 } | 35 } |
| 38 | 36 |
| 39 define <4 x i1> @undef_v4i1() { | 37 define <4 x i1> @undef_v4i1() { |
| 40 entry: | 38 entry: |
| 41 ret <4 x i1> undef | 39 ret <4 x i1> undef |
| 42 ; CHECK-LABEL: undef_v4i1 | 40 ; CHECK-LABEL: undef_v4i1 |
| 43 ; CHECK: pxor | 41 ; CHECK: pxor |
| 44 } | 42 } |
| 45 | 43 |
| 46 define <8 x i1> @undef_v8i1() { | 44 define <8 x i1> @undef_v8i1() { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 ret <4 x float> %val | 177 ret <4 x float> %val |
| 180 ; CHECK-LABEL: vector_insertelement_arg1 | 178 ; CHECK-LABEL: vector_insertelement_arg1 |
| 181 ; CHECK: pxor | 179 ; CHECK: pxor |
| 182 } | 180 } |
| 183 | 181 |
| 184 define <4 x float> @vector_insertelement_arg2(<4 x float> %arg) { | 182 define <4 x float> @vector_insertelement_arg2(<4 x float> %arg) { |
| 185 entry: | 183 entry: |
| 186 %val = insertelement <4 x float> %arg, float undef, i32 0 | 184 %val = insertelement <4 x float> %arg, float undef, i32 0 |
| 187 ret <4 x float> %val | 185 ret <4 x float> %val |
| 188 ; CHECK-LABEL: vector_insertelement_arg2 | 186 ; CHECK-LABEL: vector_insertelement_arg2 |
| 189 ; CHECK: movss {{.*}}, dword ptr [.L$float$0] | 187 ; CHECK: movss {{.*}},DWORD ptr [.L$float$0] |
| 190 } | 188 } |
| 191 | 189 |
| 192 define float @vector_extractelement_v4f32_index_0() { | 190 define float @vector_extractelement_v4f32_index_0() { |
| 193 entry: | 191 entry: |
| 194 %val = extractelement <4 x float> undef, i32 0 | 192 %val = extractelement <4 x float> undef, i32 0 |
| 195 ret float %val | 193 ret float %val |
| 196 ; CHECK-LABEL: vector_extractelement_v4f32_index_0 | 194 ; CHECK-LABEL: vector_extractelement_v4f32_index_0 |
| 197 ; CHECK: pxor | 195 ; CHECK: pxor |
| 198 } | 196 } |
| 199 | 197 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 ; CHECK: pxor | 276 ; CHECK: pxor |
| 279 } | 277 } |
| 280 | 278 |
| 281 define <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond, <4 x float> %a) { | 279 define <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond, <4 x float> %a) { |
| 282 entry: | 280 entry: |
| 283 %val = select <4 x i1> %cond, <4 x float> %a, <4 x float> undef | 281 %val = select <4 x i1> %cond, <4 x float> %a, <4 x float> undef |
| 284 ret <4 x float> %val | 282 ret <4 x float> %val |
| 285 ; CHECK-LABEL: vector_select_v4f32_arg2 | 283 ; CHECK-LABEL: vector_select_v4f32_arg2 |
| 286 ; CHECK: pxor | 284 ; CHECK: pxor |
| 287 } | 285 } |
| OLD | NEW |