aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/JS/asm.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/JS/asm.ll')
-rw-r--r--test/CodeGen/JS/asm.ll5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CodeGen/JS/asm.ll b/test/CodeGen/JS/asm.ll
index 41a30431da..c3099e3239 100644
--- a/test/CodeGen/JS/asm.ll
+++ b/test/CodeGen/JS/asm.ll
@@ -1,4 +1,4 @@
-; RUN: not llc -march=js < %s
+; RUN: not llc < %s
; Inline asm isn't supported (yet?). llc should report an error when it
; encounters inline asm.
@@ -7,6 +7,9 @@
; work, but code that uses such things most likely isn't portable anyway, and
; there are usually much better alternatives.
+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"
+
define void @foo() {
call void asm "", ""()
ret void