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

Side by Side Diff: tests_lit/llvm2ice_tests/global.ll

Issue 265703002: Add Om1 lowering with no optimizations (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Merge changed from Karl's committed CL Created 6 years, 7 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 | « tests_lit/llvm2ice_tests/fpconst.pnacl.ll ('k') | tests_lit/llvm2ice_tests/icmp-simple.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; RUIN: %llvm2ice -verbose inst %s | FileCheck %s 1 ; Trivial test of the use of internal versus external global
2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 2 ; functions.
3
4 ; RUN: %llvm2ice --verbose inst %s | FileCheck %s
5 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
3 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s 6 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
4 7
5 ; Note: We don't run this test using a PNaCl bitcode file, because 8 ; Note: We don't run this test using a PNaCl bitcode file, because
6 ; external globals are not in the PNaCl ABI. 9 ; external globals are not in the PNaCl ABI.
7 10
8 @intern_global = global [4 x i8] [i8 0, i8 0, i8 0, i8 12], align 4 11 @intern_global = global [4 x i8] [i8 0, i8 0, i8 0, i8 12], align 4
9 @extern_global = external global [4 x i8] 12 @extern_global = external global [4 x i8]
10 13
11 define i32 @test_intern_global() { 14 define i32 @test_intern_global() {
12 ; CHECK: define i32 @test_intern_global 15 ; CHECK: define i32 @test_intern_global
13 entry: 16 entry:
14 %__1 = bitcast [4 x i8]* @intern_global to i32* 17 %__1 = bitcast [4 x i8]* @intern_global to i32*
15 %v0 = load i32* %__1, align 1 18 %v0 = load i32* %__1, align 1
16 ret i32 %v0 19 ret i32 %v0
17 } 20 }
18 21
19 define i32 @test_extern_global() { 22 define i32 @test_extern_global() {
20 ; CHECK: define i32 @test_extern_global 23 ; CHECK: define i32 @test_extern_global
21 entry: 24 entry:
22 %__1 = bitcast [4 x i8]* @extern_global to i32* 25 %__1 = bitcast [4 x i8]* @extern_global to i32*
23 %v0 = load i32* %__1, align 1 26 %v0 = load i32* %__1, align 1
24 ret i32 %v0 27 ret i32 %v0
25 } 28 }
26 29
27 ; ERRORS-NOT: ICE translation error 30 ; ERRORS-NOT: ICE translation error
28 ; DUMP-NOT: SZ 31 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/fpconst.pnacl.ll ('k') | tests_lit/llvm2ice_tests/icmp-simple.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698