This repository was archived by the owner on Feb 5, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 5
5
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"
6
6
target triple = "asmjs-unknown-emscripten"
7
7
8
+ declare void @blackbox.float (float %a )
9
+ declare void @blackbox.double (double %a )
10
+
8
11
; CHECK: (+Math_sqrt(+1));
9
12
; CHECK-NEXT: (Math_fround(Math_sqrt(Math_fround(+1))));
10
13
; CHECK-NEXT: (+Math_sqrt((+$d)));
@@ -53,6 +56,12 @@ entry:
53
56
%sind = call double @sin (double 1 .0 )
54
57
%sinf = call float @sinf (float 1 .0 )
55
58
59
+ call void @blackbox.float (float %sqrtf )
60
+ call void @blackbox.double (double %sqrtd )
61
+
62
+ call void @blackbox.float (float %sinf )
63
+ call void @blackbox.double (double %sind )
64
+
56
65
ret void
57
66
}
58
67
Original file line number Diff line number Diff line change 5
5
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"
6
6
target triple = "asmjs-unknown-emscripten"
7
7
8
+ declare void @blackbox.float (float %a )
9
+ declare void @blackbox.double (double %a )
10
+
8
11
; CHECK: (+Math_sqrt(+1));
9
12
; CHECK-NEXT: (+Math_sqrt(+1));
10
13
; CHECK-NEXT: (+Math_sqrt((+$d)));
@@ -53,6 +56,12 @@ entry:
53
56
%sind = call double @sin (double 1 .0 )
54
57
%sinf = call float @sinf (float 1 .0 )
55
58
59
+ call void @blackbox.float (float %sqrtf )
60
+ call void @blackbox.double (double %sqrtd )
61
+
62
+ call void @blackbox.float (float %sinf )
63
+ call void @blackbox.double (double %sind )
64
+
56
65
ret void
57
66
}
58
67
You can’t perform that action at this time.
0 commit comments