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

Side by Side Diff: test/Transforms/NaCl/expand-varargs-emscripten.ll

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 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
1 ; RUN: opt < %s -mtriple=asmjs-unknown-emscripten -expand-varargs -S | FileCheck %s 1 ; RUN: opt < %s -mtriple=asmjs-unknown-emscripten -expand-varargs -S | FileCheck %s
2 2
3 target datalayout = "p:32:32:32" 3 target datalayout = "p:32:32:32"
4 4
5 %va_list = type i8* 5 %va_list = type i8*
6 6
7 declare void @llvm.va_start(i8*) 7 declare void @llvm.va_start(i8*)
8 declare void @llvm.va_end(i8*) 8 declare void @llvm.va_end(i8*)
9 declare void @llvm.va_copy(i8*, i8*) 9 declare void @llvm.va_copy(i8*, i8*)
10 10
11 declare void @emscripten_asm_const_int(...) 11 declare void @emscripten_asm_const_int(...)
12 declare void @emscripten_asm_const_double(...) 12 declare void @emscripten_asm_const_double(...)
13 declare void @emscripten_landingpad(...) 13 declare void @emscripten_landingpad(...)
14 declare void @emscripten_resume(...) 14 declare void @emscripten_resume(...)
15 15
16 define void @test(i32 %arg) { 16 define void @test(i32 %arg) {
17 call void (...)* @emscripten_asm_const_int(i32 %arg) 17 call void (...) @emscripten_asm_const_int(i32 %arg)
18 call void (...)* @emscripten_asm_const_double(i32 %arg) 18 call void (...) @emscripten_asm_const_double(i32 %arg)
19 call void (...)* @emscripten_landingpad(i32 %arg) 19 call void (...) @emscripten_landingpad(i32 %arg)
20 call void (...)* @emscripten_resume(i32 %arg) 20 call void (...) @emscripten_resume(i32 %arg)
21 ret void 21 ret void
22 } 22 }
23 ; CHECK-LABEL: define void @test( 23 ; CHECK-LABEL: define void @test(
24 ; CHECK-NEXT: call void (...)* @emscripten_asm_const_int(i32 %arg) 24 ; CHECK-NEXT: call void (...) @emscripten_asm_const_int(i32 %arg)
25 ; CHECK-NEXT: call void (...)* @emscripten_asm_const_double(i32 %arg) 25 ; CHECK-NEXT: call void (...) @emscripten_asm_const_double(i32 %arg)
26 ; CHECK-NEXT: call void (...)* @emscripten_landingpad(i32 %arg) 26 ; CHECK-NEXT: call void (...) @emscripten_landingpad(i32 %arg)
27 ; CHECK-NEXT: call void (...)* @emscripten_resume(i32 %arg) 27 ; CHECK-NEXT: call void (...) @emscripten_resume(i32 %arg)
28 ; CHECK-NEXT: ret void 28 ; CHECK-NEXT: ret void
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698