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

Side by Side Diff: test/CodeGen/JS/simd-misc.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-loadstore.ll ('k') | test/CodeGen/JS/simd-select.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 declare <4 x float> @emscripten_float32x4_reciprocalApproximation(<4 x float>)
7 declare <4 x float> @emscripten_float32x4_reciprocalSqrtApproximation(<4 x float >)
8
9 ; CHECK: function _test_rcp($a) {
10 ; CHECK: $a = SIMD_float32x4_check($a);
11 ; CHECK: SIMD_float32x4_reciprocalApproximation
12 ; CHECK:}
13 define <4 x float> @test_rcp(<4 x float> %a) {
14 %c = call <4 x float> @emscripten_float32x4_reciprocalApproximation(<4 x flo at> %a)
15 ret <4 x float> %c
16 }
17
18 ; CHECK: function _test_rsqrt($a) {
19 ; CHECK: $a = SIMD_float32x4_check($a);
20 ; CHECK: SIMD_float32x4_reciprocalSqrtApproximation
21 ; CHECK:}
22 define <4 x float> @test_rsqrt(<4 x float> %a) {
23 %c = call <4 x float> @emscripten_float32x4_reciprocalSqrtApproximation(<4 x float> %a)
24 ret <4 x float> %c
25 }
OLDNEW
« no previous file with comments | « test/CodeGen/JS/simd-loadstore.ll ('k') | test/CodeGen/JS/simd-select.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698