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

Side by Side Diff: tests_lit/reader_tests/unnamed.ll

Issue 567703003: Allow ability to name unnamed global addresses in Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add tests Created 6 years, 3 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/llvm2ice.cpp ('K') | « tests_lit/llvm2ice_tests/unnamed.ll ('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 that we name unnamed global addresses.
2
3 ; RUN: llvm-as < %s | pnacl-freeze \
4 ; RUN: | %llvm2ice -notranslate -verbose=inst -build-on-read \
5 ; RUN: -default-global-prefix=__g -allow-pnacl-reader-error-recov ery \
Jim Stichnoth 2014/09/11 22:08:19 80-char, here and line 10
6 ; RUN: | FileCheck %s
7
8 ; RUN: llvm-as < %s | pnacl-freeze \
9 ; RUN: | %llvm2ice -notranslate -verbose=inst -build-on-read \
10 ; RUN: -default-global-prefix=h -allow-pnacl-reader-error-recover y \
11 ; RUN: 2>& 1 | FileCheck --check-prefix=BAD %s
Jim Stichnoth 2014/09/11 22:08:19 Currently the warning message is going to llvm::ou
Karl 2014/09/12 16:29:06 Not anymore. Fixing.
12
13 ; TODO(kschimpf) Check global variable declarations, once generated.
14
15 @0 = internal global [4 x i8] zeroinitializer, align 4
16 @1 = internal constant [10 x i8] c"Some stuff", align 1
17
18 define i32 @2(i32 %v) {
19 ret i32 %v
20 }
21
22 ; CHECK: define i32 @__g2(i32 %__0) {
23 ; CHECK-NEXT: __0:
24 ; CHECK-NEXT: ret i32 %__0
25 ; CHECK-NEXT: }
26
27 define void @hg() {
28 ret void
29 }
30
31 ; BAD: Warning: Default global prefix 'h' conflicts with name 'hg'.
32
33 ; CHECK-NEXT: define void @hg() {
34 ; CHECK-NEXT: __0:
35 ; CHECK-NEXT: ret void
36 ; CHECK-NEXT: }
37
38 define void @3() {
39 ret void
40 }
41
42 ; CHECK-NEXT: define void @__g3() {
43 ; CHECK-NEXT: __0:
44 ; CHECK-NEXT: ret void
45 ; CHECK-NEXT: }
OLDNEW
« src/llvm2ice.cpp ('K') | « tests_lit/llvm2ice_tests/unnamed.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698