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

Side by Side Diff: test/CodeGenCXX/static-init-emscripten.cpp

Issue 1696583002: Remove Emscripten support (Closed) Base URL: https://chromium.googlesource.com/a/native_client/pnacl-clang.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 unified diff | Download patch
« no previous file with comments | « test/CodeGenCXX/member-function-pointers.cpp ('k') | test/Driver/asmjs-unknown-emscripten.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // RUN: %clang_cc1 -emit-llvm -triple=asmjs-unknown-emscripten -o - %s | FileChe ck %s
2
3 int f();
4
5 // Test that Emscripten uses the Itanium/x86 ABI in which the static
6 // variable's guard variable is tested via "load i8 and compare with
7 // zero" rather than the ARM ABI which uses "load i32 and test the
8 // bottom bit".
9 void g() {
10 static int a = f();
11 }
12 // CHECK: load atomic i8, i8* bitcast (i64* @_ZGVZ1gvE1a to i8*) acquire
13 // CHECK-NEXT: %guard.uninitialized = icmp eq i8 %0, 0
14 // CHECK-NEXT: br i1 %guard.uninitialized, label %init.check, label %init.end
OLDNEW
« no previous file with comments | « test/CodeGenCXX/member-function-pointers.cpp ('k') | test/Driver/asmjs-unknown-emscripten.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698