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

Side by Side Diff: test/Transforms/NaCl/rewrite-memfuncs-noncall-uses.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 ; RUN: opt < %s -rewrite-pnacl-library-calls -S | FileCheck %s
2 ; Check that the rewrite pass behaves correctly in the presence
3 ; of various uses of mem* that are not calls.
4
5 @fpcpy = global i8* (i8*, i8*, i32)* @memcpy
6 ; CHECK: @fpcpy = global i8* (i8*, i8*, i32)* @memcpy
7 @fpmove = global i8* (i8*, i8*, i32)* @memmove
8 ; CHECK: @fpmove = global i8* (i8*, i8*, i32)* @memmove
9 @fpset = global i8* (i8*, i32, i32)* @memset
10 ; CHECK: @fpset = global i8* (i8*, i32, i32)* @memset
11
12 ; CHECK: define internal i8* @memcpy(i8* %dest, i8* %src, i32 %len) {
13 ; CHECK: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dest, i8* %src, i32 %len, i 32 1, i1 false)
14 ; CHECK: ret i8* %dest
15 ; CHECK: }
16
17 ; CHECK: define internal i8* @memmove(i8* %dest, i8* %src, i32 %len) {
18 ; CHECK: call void @llvm.memmove.p0i8.p0i8.i32(i8* %dest, i8* %src, i32 %len, i32 1, i1 false)
19 ; CHECK: ret i8* %dest
20 ; CHECK: }
21
22 ; CHECK: define internal i8* @memset(i8* %dest, i32 %val, i32 %len) {
23 ; CHECK: %trunc_byte = trunc i32 %val to i8
24 ; CHECK: call void @llvm.memset.p0i8.i32(i8* %dest, i8 %trunc_byte, i32 %len, i32 1, i1 false)
25 ; CHECK: ret i8* %dest
26 ; CHECK: }
27
28 declare i8* @memcpy(i8*, i8*, i32)
29 declare i8* @memmove(i8*, i8*, i32)
30 declare i8* @memset(i8*, i32, i32)
OLDNEW
« no previous file with comments | « test/Transforms/NaCl/rewrite-memfuncs-no-store.ll ('k') | test/Transforms/NaCl/rewrite-prefetch.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698