Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Side by Side Diff: tests_lit/llvm2ice_tests/undef.ll

Issue 914263005: Subzero: switch from llvm-objdump to objdump for lit tests (for LLVM merge) (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: fix some line wrap Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/test_i1.ll ('k') | tests_lit/llvm2ice_tests/unreachable.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 \
8 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s 8 ; RUN: --verbose none | FileCheck %s
9 ; RUN: %p2i -i %s --args -O2 -mattr=sse4.1 --verbose none \ 9 ; RUN: %p2i -i %s --assemble --disassemble --args -Om1 -mattr=sse4.1 \
10 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ 10 ; RUN: --verbose none | 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 \
13 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
14 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s
15 11
16 define i32 @undef_i32() { 12 define i32 @undef_i32() {
17 entry: 13 entry:
18 ret i32 undef 14 ret i32 undef
19 ; CHECK-LABEL: undef_i32 15 ; CHECK-LABEL: undef_i32
20 ; CHECK: mov eax, 0 16 ; CHECK: mov eax,0x0
21 } 17 }
22 18
23 define i64 @undef_i64() { 19 define i64 @undef_i64() {
24 entry: 20 entry:
25 ret i64 undef 21 ret i64 undef
26 ; CHECK-LABEL: undef_i64 22 ; CHECK-LABEL: undef_i64
27 ; CHECK-DAG: mov eax, 0 23 ; CHECK-DAG: mov eax,0x0
28 ; CHECK-DAG: mov edx, 0 24 ; CHECK-DAG: mov edx,0x0
29 ; CHECK: ret 25 ; CHECK: ret
30 } 26 }
31 27
32 define float @undef_float() { 28 define float @undef_float() {
33 entry: 29 entry:
34 ret float undef 30 ret float undef
35 ; CHECK-LABEL: undef_float 31 ; CHECK-LABEL: undef_float
36 ; CHECK: fld dword ptr [.L$float$0] 32 ; CHECK: fld DWORD PTR {{.*}} .L$float$0
37 } 33 }
38 34
39 define <4 x i1> @undef_v4i1() { 35 define <4 x i1> @undef_v4i1() {
40 entry: 36 entry:
41 ret <4 x i1> undef 37 ret <4 x i1> undef
42 ; CHECK-LABEL: undef_v4i1 38 ; CHECK-LABEL: undef_v4i1
43 ; CHECK: pxor 39 ; CHECK: pxor
44 } 40 }
45 41
46 define <8 x i1> @undef_v8i1() { 42 define <8 x i1> @undef_v8i1() {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 ret <4 x float> %val 175 ret <4 x float> %val
180 ; CHECK-LABEL: vector_insertelement_arg1 176 ; CHECK-LABEL: vector_insertelement_arg1
181 ; CHECK: pxor 177 ; CHECK: pxor
182 } 178 }
183 179
184 define <4 x float> @vector_insertelement_arg2(<4 x float> %arg) { 180 define <4 x float> @vector_insertelement_arg2(<4 x float> %arg) {
185 entry: 181 entry:
186 %val = insertelement <4 x float> %arg, float undef, i32 0 182 %val = insertelement <4 x float> %arg, float undef, i32 0
187 ret <4 x float> %val 183 ret <4 x float> %val
188 ; CHECK-LABEL: vector_insertelement_arg2 184 ; CHECK-LABEL: vector_insertelement_arg2
189 ; CHECK: movss {{.*}}, dword ptr [.L$float$0] 185 ; CHECK: movss {{.*}},DWORD PTR {{.*}} .L$float$0
190 } 186 }
191 187
192 define float @vector_extractelement_v4f32_index_0() { 188 define float @vector_extractelement_v4f32_index_0() {
193 entry: 189 entry:
194 %val = extractelement <4 x float> undef, i32 0 190 %val = extractelement <4 x float> undef, i32 0
195 ret float %val 191 ret float %val
196 ; CHECK-LABEL: vector_extractelement_v4f32_index_0 192 ; CHECK-LABEL: vector_extractelement_v4f32_index_0
197 ; CHECK: pxor 193 ; CHECK: pxor
198 } 194 }
199 195
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 ; CHECK: pxor 274 ; CHECK: pxor
279 } 275 }
280 276
281 define <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond, <4 x float> %a) { 277 define <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond, <4 x float> %a) {
282 entry: 278 entry:
283 %val = select <4 x i1> %cond, <4 x float> %a, <4 x float> undef 279 %val = select <4 x i1> %cond, <4 x float> %a, <4 x float> undef
284 ret <4 x float> %val 280 ret <4 x float> %val
285 ; CHECK-LABEL: vector_select_v4f32_arg2 281 ; CHECK-LABEL: vector_select_v4f32_arg2
286 ; CHECK: pxor 282 ; CHECK: pxor
287 } 283 }
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/test_i1.ll ('k') | tests_lit/llvm2ice_tests/unreachable.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698