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

Side by Side Diff: test/CodeGen/NVPTX/i1-global.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/NVPTX/generic-to-nvvm.ll ('k') | test/CodeGen/NVPTX/i1-param.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
6 ; CHECK: .visible .global .align 1 .u8 mypred
7 @mypred = addrspace(1) global i1 true, align 1
8
9
10 define void @foo(i1 %p, i32* %out) {
11 %ld = load i1 addrspace(1)* @mypred
12 %val = zext i1 %ld to i32
13 store i32 %val, i32* %out
14 ret void
15 }
16
17
18 !nvvm.annotations = !{!0}
19 !0 = metadata !{void (i1, i32*)* @foo, metadata !"kernel", i32 1}
OLDNEW
« no previous file with comments | « test/CodeGen/NVPTX/generic-to-nvvm.ll ('k') | test/CodeGen/NVPTX/i1-param.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698