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

Side by Side Diff: test/CodeGen/NVPTX/generic-to-nvvm.ll

Issue 183273009: Prep for merging 3.4: Undo changes from 3.3 branch (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Retry Created 6 years, 9 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/Generic/ptr-annotate.ll ('k') | test/CodeGen/NVPTX/i1-global.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 -march=nvptx -mcpu=sm_20 -drvcuda | FileCheck %s
2
3 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3 2:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
4
5 ; Ensure global variables in address space 0 are promoted to address space 1
6
7 ; CHECK: .global .align 4 .u32 myglobal = 42;
8 @myglobal = internal global i32 42, align 4
9 ; CHECK: .global .align 4 .u32 myconst = 42;
10 @myconst = internal constant i32 42, align 4
11
12
13 define void @foo(i32* %a, i32* %b) {
14 ; CHECK: cvta.global.u32
15 %ld1 = load i32* @myglobal
16 ; CHECK: cvta.global.u32
17 %ld2 = load i32* @myconst
18 store i32 %ld1, i32* %a
19 store i32 %ld2, i32* %b
20 ret void
21 }
22
23
24 !nvvm.annotations = !{!0}
25 !0 = metadata !{void (i32*, i32*)* @foo, metadata !"kernel", i32 1}
OLDNEW
« no previous file with comments | « test/CodeGen/Generic/ptr-annotate.ll ('k') | test/CodeGen/NVPTX/i1-global.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698