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

Side by Side Diff: tests_lit/llvm2ice_tests/vector-pool.ll

Issue 353553004: Add support for vector types and vector constants. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: 1) Fix alignment in type table. 2) Add VECT128_BYTES constant. 3) add _movp() function. Created 6 years, 6 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
« src/llvm2ice.cpp ('K') | « tests_lit/llvm2ice_tests/vector-const.ll ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; This file tests support for vector constant pooling.
2
3 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s
4 ; RUN: %llvm2ice -Om1 --verbose none %s | FileCheck %s
5 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
6 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
7
8 define <4 x float> @test_v4f32(i32 %arg) {
jvoung (off chromium) 2014/06/26 23:33:46 Might as well check an integer typed const pool va
9 entry:
10 ret <4 x float> <float 4.000000e+00, float 3.000000e+00, float 2.000000e+00, f loat 1.000000e+00>
11 }
12
13 ; CHECK: .long 0x40800000
14 ; CHECK-NEXT: .long 0x40400000
15 ; CHECK-NEXT: .long 0x40000000
16 ; CHECK-NEXT: .long 0x3f800000
17
18 define <8 x i1> @test_v4i1(i32 %arg) {
19 entry:
20 ret <8 x i1> <i1 0, i1 1, i1 0, i1 1, i1 1, i1 1, i1 1, i1 1>
21 }
22
23 ; CHECK: .short 0x0
24 ; CHECK-NEXT: .short 0x1
25 ; CHECK-NEXT: .short 0x0
26 ; CHECK-NEXT: .short 0x1
27 ; CHECK-NEXT: .short 0x1
28 ; CHECK-NEXT: .short 0x1
29 ; CHECK-NEXT: .short 0x1
30 ; CHECK-NEXT: .short 0x1
31
32 ; ERRORS-NOT: ICE translation error
33 ; DUMP-NOT: SZ
OLDNEW
« src/llvm2ice.cpp ('K') | « tests_lit/llvm2ice_tests/vector-const.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698