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

Side by Side Diff: tests_lit/llvm2ice_tests/ias-data-reloc.ll

Issue 1241313002: Fix --filetype=iasm non-pc-rel fixup offsets (double counted). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 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
« src/IceELFSection.h ('K') | « src/IceFixups.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; Tests the integrated assembler for instructions with a reloc + offset.
2
3 ; RUN: %if --need=target_X8632 --need=allow_dump \
4 ; RUN: --command %p2i --target x8632 -i %s --args -O2 \
5 ; RUN: | %if --need=target_X8632 --need=allow_dump --command FileCheck %s
6
7 @p_global_char = internal global [8 x i8] zeroinitializer, align 8
8
9 define internal void @reloc_in_global(i64 %x) {
10 entry:
11 %p_global_char.bc = bitcast [8 x i8]* @p_global_char to i64*
12 ; This 64-bit load is split into an i32 store to [p_global_char]
13 ; and an i32 store to [p_global_char + 4] on 32-bit architectures.
14 store i64 %x, i64* %p_global_char.bc, align 1
15 ret void
16 }
17 ; CHECK-LABEL: reloc_in_global
18 ; CHECK: .long p_global_char + 4
OLDNEW
« src/IceELFSection.h ('K') | « src/IceFixups.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698