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

Side by Side Diff: test/CodeGen/JS/basics.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/asm.ll ('k') | test/CodeGen/JS/blockchanges.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 _simple_integer_math(
7 ; CHECK: [[VAL_A:\$[a-z]+]] = [[VAL_A]]|0;
8 ; CHECK: [[VAL_B:\$[a-z]+]] = [[VAL_B]]|0;
9 ; CHECK: [[VAL_C:\$[a-z]+]] = (([[VAL_A]]) + ([[VAL_B]]))|0;
10 ; CHECK: [[VAL_D:\$[a-z]+]] = ([[VAL_C]]*20)|0;
11 ; CHECK: [[VAL_E:\$[a-z]+]] = (([[VAL_D]]|0) / ([[VAL_A]]|0))&-1;
12 ; CHECK: [[VAL_F:\$[a-z]+]] = (([[VAL_E]]) - 3)|0;
13 ; CHECK: return ([[VAL_F]]|0);
14 define i32 @simple_integer_math(i32 %a, i32 %b) nounwind {
15 %c = add i32 %a, %b
16 %d = mul i32 %c, 20
17 %e = sdiv i32 %d, %a
18 %f = sub i32 %e, 3
19 ret i32 %f
20 }
21
22 ; CHECK: function _fneg(
23 ; CHECK: [[VAL_D:\$[a-z]+]] = +[[VAL_D]]
24 ; CHECK: [[VAL_F:\$[a-z]+]] = +0
25 ; CHECK: [[VAL_F]] = -[[VAL_D]]
26 ; CHECK: return (+[[VAL_F]]);
27 define double @fneg(double %d) nounwind {
28 %f = fsub double -0.0, %d
29 ret double %f
30 }
31
32 ; CHECK: function _flt_rounds(
33 ; CHECK: t = 1;
34 declare i32 @llvm.flt.rounds()
35 define i32 @flt_rounds() {
36 %t = call i32 @llvm.flt.rounds()
37 ret i32 %t
38 }
OLDNEW
« no previous file with comments | « test/CodeGen/JS/asm.ll ('k') | test/CodeGen/JS/blockchanges.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698