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

Unified Diff: test/CodeGen/JS/globals.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/global-alias.ll ('k') | test/CodeGen/JS/insertelement-chains.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/CodeGen/JS/globals.ll
diff --git a/test/CodeGen/JS/globals.ll b/test/CodeGen/JS/globals.ll
deleted file mode 100644
index bfd4f0e9d832a59f83b9830a7023951941633ac8..0000000000000000000000000000000000000000
--- a/test/CodeGen/JS/globals.ll
+++ /dev/null
@@ -1,45 +0,0 @@
-; RUN: llc < %s | FileCheck %s
-
-; Test simple global variable codegen.
-
-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 _loads() {
-; CHECK: [[VAR_t:\$[a-z]+]] = HEAP32[2]|0;
-; CHECK: [[VAR_s:\$[a-z]+]] = +HEAPF64[2];
-; CHECK: [[VAR_u:\$[a-z]+]] = HEAP8[24]|0;
-; CHECK: [[VAR_a:\$[a-z]+]] = (~~(([[VAR_s:\$[a-z]+]]))>>>0);
-; CHECK: [[VAR_b:\$[a-z]+]] = [[VAR_u:\$[a-z]+]] << 24 >> 24;
-; CHECK: [[VAR_c:\$[a-z]+]] = (([[VAR_t:\$[a-z]+]]) + ([[VAR_a:\$[a-z]+]]))|0;
-; CHECK: [[VAR_d:\$[a-z]+]] = (([[VAR_c:\$[a-z]+]]) + ([[VAR_b:\$[a-z]+]]))|0;
-; CHECK: return ([[VAR_d:\$[a-z]+]]|0);
-define i32 @loads() {
- %t = load i32, i32* @A
- %s = load double, double* @B
- %u = load i8, i8* @C
- %a = fptoui double %s to i32
- %b = sext i8 %u to i32
- %c = add i32 %t, %a
- %d = add i32 %c, %b
- ret i32 %d
-}
-
-; CHECK: function _stores([[VAR_m:\$[a-z]+]],[[VAR_n:\$[a-z]+]],[[VAR_o:\$[a-z]+]]) {
-; CHECK: [[VAR_m:\$[a-z]+]] = [[VAR_m:\$[a-z]+]]|0;
-; CHECK: [[VAR_n:\$[a-z]+]] = [[VAR_n:\$[a-z]+]]|0;
-; CHECK: [[VAR_o:\$[a-z]+]] = +[[VAR_o:\$[a-z]+]];
-; CHECK: HEAP32[2] = [[VAR_n:\$[a-z]+]];
-; CHECK: HEAPF64[2] = [[VAR_o:\$[a-z]+]];
-; CHECK: HEAP8[24] = [[VAR_m:\$[a-z]+]];
-define void @stores(i8 %m, i32 %n, double %o) {
- store i32 %n, i32* @A
- store double %o, double* @B
- store i8 %m, i8* @C
- ret void
-}
-
-; CHECK: allocate([133,26,0,0,0,0,0,0,205,204,204,204,204,76,55,64,2,0,0,0,0,0,0,0], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE);
-@A = global i32 6789
-@B = global double 23.3
-@C = global i8 2
« no previous file with comments | « test/CodeGen/JS/global-alias.ll ('k') | test/CodeGen/JS/insertelement-chains.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698