aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/JS/expect-intrinsics.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/JS/expect-intrinsics.ll')
-rw-r--r--test/CodeGen/JS/expect-intrinsics.ll6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/CodeGen/JS/expect-intrinsics.ll b/test/CodeGen/JS/expect-intrinsics.ll
index b061f52967..6d2cba4592 100644
--- a/test/CodeGen/JS/expect-intrinsics.ll
+++ b/test/CodeGen/JS/expect-intrinsics.ll
@@ -1,9 +1,13 @@
-; RUN: llc -march=js < %s | FileCheck %s
+; RUN: llc < %s | FileCheck %s
; Handle the llvm.expect intrinsic.
+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: $expval = $x;
; CHECK: $tobool = ($expval|0)!=(0);
+
define void @foo(i32 %x) {
entry:
%expval = call i32 @llvm.expect.i32(i32 %x, i32 0)