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

Side by Side Diff: test/Transforms/NaCl/expand-tls-constexpr2.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 -nacl-expand-tls -S | FileCheck %s
2
3 @tvar = thread_local global i32 0
4
5 define i32 @get_tvar() {
6 ret i32 ptrtoint (i32* @tvar to i32)
7 }
8 ; CHECK: %tls_raw = call i8* @llvm.nacl.read.tp()
9 ; CHECK: %tls_struct = bitcast i8* %tls_raw to %tls_struct*
10 ; CHECK: %field = getelementptr %tls_struct* %tls_struct, i32 -1, i32 1, i32 0
11 ; CHECK: %expanded = ptrtoint i32* %field to i32
12 ; CHECK: ret i32 %expanded
OLDNEW
« no previous file with comments | « test/Transforms/NaCl/expand-tls-constexpr-alias.ll ('k') | test/Transforms/NaCl/expand-tls-phi.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698