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

Unified Diff: test/CodeGen/JS/mem-intrinsics.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/lit.local.cfg ('k') | test/CodeGen/JS/phi.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/CodeGen/JS/mem-intrinsics.ll
diff --git a/test/CodeGen/JS/mem-intrinsics.ll b/test/CodeGen/JS/mem-intrinsics.ll
deleted file mode 100644
index d59a6a64633c019f18ae4004979745db94b1f32b..0000000000000000000000000000000000000000
--- a/test/CodeGen/JS/mem-intrinsics.ll
+++ /dev/null
@@ -1,56 +0,0 @@
-; RUN: llc < %s | FileCheck %s
-
-; llc should emit small aligned memcpy and memset inline.
-
-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: test_unrolled_memcpy
-; CHECK: HEAP32[$d+0>>2]=HEAP32[$s+0>>2]|0;HEAP32[$d+4>>2]=HEAP32[$s+4>>2]|0;HEAP32[$d+8>>2]=HEAP32[$s+8>>2]|0;HEAP32[$d+12>>2]=HEAP32[$s+12>>2]|0;HEAP32[$d+16>>2]=HEAP32[$s+16>>2]|0;HEAP32[$d+20>>2]=HEAP32[$s+20>>2]|0;HEAP32[$d+24>>2]=HEAP32[$s+24>>2]|0;HEAP32[$d+28>>2]=HEAP32[$s+28>>2]|0;
-define void @test_unrolled_memcpy(i8* %d, i8* %s) {
- call void @llvm.memcpy.p0i8.p0i8.i32(i8* %d, i8* %s, i32 32, i32 4, i1 false)
- ret void
-}
-
-; CHECK: test_loop_memcpy
-; CHECK: dest=$d+0|0; src=$s+0|0; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0))
-define void @test_loop_memcpy(i8* %d, i8* %s) {
- call void @llvm.memcpy.p0i8.p0i8.i32(i8* %d, i8* %s, i32 64, i32 4, i1 false)
- ret void
-}
-
-; CHECK: test_call_memcpy
-; CHECK: memcpy(($d|0),($s|0),65536)
-define void @test_call_memcpy(i8* %d, i8* %s) {
- call void @llvm.memcpy.p0i8.p0i8.i32(i8* %d, i8* %s, i32 65536, i32 4, i1 false)
- ret void
-}
-
-; CHECK: test_unrolled_memset
-; CHECK: HEAP32[$d+0>>2]=0|0;HEAP32[$d+4>>2]=0|0;HEAP32[$d+8>>2]=0|0;HEAP32[$d+12>>2]=0|0;HEAP32[$d+16>>2]=0|0;HEAP32[$d+20>>2]=0|0;HEAP32[$d+24>>2]=0|0;HEAP32[$d+28>>2]=0|0;
-define void @test_unrolled_memset(i8* %d, i8* %s) {
- call void @llvm.memset.p0i8.i32(i8* %d, i8 0, i32 32, i32 4, i1 false)
- ret void
-}
-
-; CHECK: test_loop_memset
-; CHECK: dest=$d+0|0; stop=dest+64|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
-define void @test_loop_memset(i8* %d, i8* %s) {
- call void @llvm.memset.p0i8.i32(i8* %d, i8 0, i32 64, i32 4, i1 false)
- ret void
-}
-
-; CHECK: test_call_memset
-; CHECK: memset(($d|0),0,65536)
-define void @test_call_memset(i8* %d, i8* %s) {
- call void @llvm.memset.p0i8.i32(i8* %d, i8 0, i32 65536, i32 4, i1 false)
- ret void
-}
-
-; Also, don't emit declarations for the intrinsic functions.
-; CHECK-NOT: p0i8
-
-declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) #0
-declare void @llvm.memset.p0i8.i32(i8* nocapture, i8, i32, i32, i1) #0
-
-attributes #0 = { nounwind }
« no previous file with comments | « test/CodeGen/JS/lit.local.cfg ('k') | test/CodeGen/JS/phi.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698