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

Side by Side Diff: test/CodeGen/NVPTX/i1-param.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/i1-global.ll ('k') | test/CodeGen/NVPTX/intrinsics.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 ; Make sure predicate (i1) operands to kernels get expanded out to .u8
6
7 ; CHECK: .entry foo
8 ; CHECK: .param .u8 foo_param_0
9 ; CHECK: .param .u32 foo_param_1
10 define void @foo(i1 %p, i32* %out) {
11 %val = zext i1 %p to i32
12 store i32 %val, i32* %out
13 ret void
14 }
15
16
17 !nvvm.annotations = !{!0}
18 !0 = metadata !{void (i1, i32*)* @foo, metadata !"kernel", i32 1}
OLDNEW
« no previous file with comments | « test/CodeGen/NVPTX/i1-global.ll ('k') | test/CodeGen/NVPTX/intrinsics.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698