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

Side by Side Diff: test/CodeGen/JS/global-alias.ll

Issue 1692803002: Remove Emscripten support (Closed) Base URL: https://chromium.googlesource.com/a/native_client/pnacl-llvm.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « test/CodeGen/JS/getelementptr.ll ('k') | test/CodeGen/JS/globals.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; RUN: llc < %s | FileCheck %s
2
3 ; Handle global aliases of various kinds.
4
5 target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64 :64:64-p:32:32:32-v128:32:128-n32-S128"
6 target triple = "asmjs-unknown-emscripten"
7
8 @pri = internal global [60 x i8] zeroinitializer
9 @pub = global [60 x i8] zeroinitializer
10
11 @pri_int = internal alias [60 x i8]* @pri
12 @pri_wea = weak alias [60 x i8]* @pri
13 @pri_nor = alias [60 x i8]* @pri
14
15 @pub_int = internal alias [60 x i8]* @pub
16 @pub_wea = weak alias [60 x i8]* @pub
17 @pub_nor = alias [60 x i8]* @pub
18
19 ; CHECK: test0(
20 ; CHECK: return ([[PRI:[0-9]+]]|0);
21 define [60 x i8]* @test0() {
22 ret [60 x i8]* @pri
23 }
24 ; CHECK: test1(
25 ; CHECK: return ([[PRI]]|0);
26 define [60 x i8]* @test1() {
27 ret [60 x i8]* @pri_int
28 }
29 ; CHECK: test2(
30 ; CHECK: return ([[PRI]]|0);
31 define [60 x i8]* @test2() {
32 ret [60 x i8]* @pri_wea
33 }
34 ; CHECK: test3(
35 ; CHECK: return ([[PRI]]|0);
36 define [60 x i8]* @test3() {
37 ret [60 x i8]* @pri_nor
38 }
39
40 ; CHECK: test4(
41 ; CHECK: return ([[PUB:[0-9]+]]|0);
42 define [60 x i8]* @test4() {
43 ret [60 x i8]* @pub
44 }
45 ; CHECK: test5(
46 ; CHECK: return ([[PUB]]|0);
47 define [60 x i8]* @test5() {
48 ret [60 x i8]* @pub_int
49 }
50 ; CHECK: test6(
51 ; CHECK: return ([[PUB]]|0);
52 define [60 x i8]* @test6() {
53 ret [60 x i8]* @pub_wea
54 }
55 ; CHECK: test7(
56 ; CHECK: return ([[PUB]]|0);
57 define [60 x i8]* @test7() {
58 ret [60 x i8]* @pub_nor
59 }
OLDNEW
« no previous file with comments | « test/CodeGen/JS/getelementptr.ll ('k') | test/CodeGen/JS/globals.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698