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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/CodeGen/JS/asm.ll ('k') | test/CodeGen/JS/blockchanges.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/CodeGen/JS/basics.ll
diff --git a/test/CodeGen/JS/basics.ll b/test/CodeGen/JS/basics.ll
deleted file mode 100644
index 573680f810eeee581cf7afbf6d17266ee968111a..0000000000000000000000000000000000000000
--- a/test/CodeGen/JS/basics.ll
+++ /dev/null
@@ -1,38 +0,0 @@
-; RUN: llc < %s | FileCheck %s
-
-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"
-target triple = "asmjs-unknown-emscripten"
-
-; CHECK: function _simple_integer_math(
-; CHECK: [[VAL_A:\$[a-z]+]] = [[VAL_A]]|0;
-; CHECK: [[VAL_B:\$[a-z]+]] = [[VAL_B]]|0;
-; CHECK: [[VAL_C:\$[a-z]+]] = (([[VAL_A]]) + ([[VAL_B]]))|0;
-; CHECK: [[VAL_D:\$[a-z]+]] = ([[VAL_C]]*20)|0;
-; CHECK: [[VAL_E:\$[a-z]+]] = (([[VAL_D]]|0) / ([[VAL_A]]|0))&-1;
-; CHECK: [[VAL_F:\$[a-z]+]] = (([[VAL_E]]) - 3)|0;
-; CHECK: return ([[VAL_F]]|0);
-define i32 @simple_integer_math(i32 %a, i32 %b) nounwind {
- %c = add i32 %a, %b
- %d = mul i32 %c, 20
- %e = sdiv i32 %d, %a
- %f = sub i32 %e, 3
- ret i32 %f
-}
-
-; CHECK: function _fneg(
-; CHECK: [[VAL_D:\$[a-z]+]] = +[[VAL_D]]
-; CHECK: [[VAL_F:\$[a-z]+]] = +0
-; CHECK: [[VAL_F]] = -[[VAL_D]]
-; CHECK: return (+[[VAL_F]]);
-define double @fneg(double %d) nounwind {
- %f = fsub double -0.0, %d
- ret double %f
-}
-
-; CHECK: function _flt_rounds(
-; CHECK: t = 1;
-declare i32 @llvm.flt.rounds()
-define i32 @flt_rounds() {
- %t = call i32 @llvm.flt.rounds()
- ret i32 %t
-}
« 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