aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/JS/globals.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/JS/globals.ll')
-rw-r--r--test/CodeGen/JS/globals.ll5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CodeGen/JS/globals.ll b/test/CodeGen/JS/globals.ll
index 4ae83eedb2..4ccf972e13 100644
--- a/test/CodeGen/JS/globals.ll
+++ b/test/CodeGen/JS/globals.ll
@@ -1,7 +1,10 @@
-; RUN: llc -march=js %s -o - | FileCheck %s
+; 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];