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

Side by Side Diff: test/CodeGen/JS/simd-select.ll

Issue 1692803002: Remove Emscripten support (Closed) Base URL: https://chromium.googlesource.com/a/native_client/pnacl-llvm.git@master
Patch Set: Created 4 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 | « test/CodeGen/JS/simd-misc.ll ('k') | test/CodeGen/JS/simd-shift.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; RUN: llc < %s | FileCheck %s
2
3 target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64 :64:64-p:32:32:32-v128:32:128-n32-S128"
4 target triple = "asmjs-unknown-emscripten"
5
6 ; CHECK: function _test0($a,$b,$cond) {
7 ; CHECK: $a = SIMD_int32x4_check($a);
8 ; CHECK: $b = SIMD_int32x4_check($b);
9 ; CHECK: $cond = SIMD_int32x4_check($cond);
10 ; CHECK: $cmp = SIMD_int32x4_select($cond,$a,$b);
11 ; CHECK: return (SIMD_int32x4_check($cmp));
12 ; CHECK: }
13 define <4 x i32> @test0(<4 x i32> %a, <4 x i32> %b, <4 x i1> %cond) nounwind {
14 entry:
15 %cmp = select <4 x i1> %cond, <4 x i32> %a, <4 x i32> %b
16 ret <4 x i32> %cmp
17 }
18
19 ; CHECK: function _test1($a,$b,$cond) {
20 ; CHECK: $a = SIMD_float32x4_check($a);
21 ; CHECK: $b = SIMD_float32x4_check($b);
22 ; CHECK: $cond = SIMD_int32x4_check($cond);
23 ; CHECK: $cmp = SIMD_float32x4_select($cond,$a,$b);
24 ; CHECK: return (SIMD_float32x4_check($cmp));
25 ; CHECK: }
26 define <4 x float> @test1(<4 x float> %a, <4 x float> %b, <4 x i1> %cond) nounwi nd {
27 entry:
28 %cmp = select <4 x i1> %cond, <4 x float> %a, <4 x float> %b
29 ret <4 x float> %cmp
30 }
31
32 ; CHECK: function _test2($a,$b,$cond) {
33 ; CHECK: $a = SIMD_int32x4_check($a);
34 ; CHECK: $b = SIMD_int32x4_check($b);
35 ; CHECK: $cond = $cond|0;
36 ; CHECK: $cmp = $cond ? $a : $b;
37 ; CHECK: return (SIMD_int32x4_check($cmp));
38 ; CHECK: }
39 define <4 x i32> @test2(<4 x i32> %a, <4 x i32> %b, i1 %cond) nounwind {
40 entry:
41 %cmp = select i1 %cond, <4 x i32> %a, <4 x i32> %b
42 ret <4 x i32> %cmp
43 }
44
45 ; CHECK: function _test3($a,$b,$cond) {
46 ; CHECK: $a = SIMD_float32x4_check($a);
47 ; CHECK: $b = SIMD_float32x4_check($b);
48 ; CHECK: $cond = $cond|0;
49 ; CHECK: $cmp = $cond ? $a : $b;
50 ; CHECK: return (SIMD_float32x4_check($cmp));
51 ; CHECK: }
52 define <4 x float> @test3(<4 x float> %a, <4 x float> %b, i1 %cond) nounwind {
53 entry:
54 %cmp = select i1 %cond, <4 x float> %a, <4 x float> %b
55 ret <4 x float> %cmp
56 }
OLDNEW
« no previous file with comments | « test/CodeGen/JS/simd-misc.ll ('k') | test/CodeGen/JS/simd-shift.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698