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

Unified Diff: test/NaCl/X86/pic-nacl-x8632.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 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/NaCl/X86/no-global-in-disp-x86-64.ll ('k') | test/NaCl/X86/pnacl-avoids-r11-x86-64.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/X86/pic-nacl-x8632.ll
diff --git a/test/NaCl/X86/pic-nacl-x8632.ll b/test/NaCl/X86/pic-nacl-x8632.ll
new file mode 100644
index 0000000000000000000000000000000000000000..95897c52aad81fecc6c1281e02aa7da92522343d
--- /dev/null
+++ b/test/NaCl/X86/pic-nacl-x8632.ll
@@ -0,0 +1,21 @@
+; RUN: llc < %s -mcpu=generic -mtriple=i686-unknown-nacl -relocation-model=pic -asm-verbose=false -post-RA-scheduler=false | FileCheck %s
+
+@ptr = external global i32*
+@dst = external global i32
+@src = external global i32
+
+define void @test0() nounwind {
+entry:
+ store i32* @dst, i32** @ptr
+ %tmp.s = load i32* @src
+ store i32 %tmp.s, i32* @dst
+ ret void
+; CHECK-LABEL: test0:
+; CHECK: calll .L0$pb
+; CHECK-NEXT: .L0$pb:
+; CHECK-NEXT: popl
+; CHECK: addl $_GLOBAL_OFFSET_TABLE_+(.-.L0$pb),
+; CHECK: movl dst@GOT(%eax),
+; CHECK: movl ptr@GOT(%eax),
+; CHECK: movl src@GOT(%eax),
+}
« no previous file with comments | « test/NaCl/X86/no-global-in-disp-x86-64.ll ('k') | test/NaCl/X86/pnacl-avoids-r11-x86-64.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698