OLD | NEW |
| (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 } | |
OLD | NEW |