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

Side by Side Diff: test/Transforms/NaCl/pnacl-abi-simplify-postopt.ll

Issue 17777004: Concurrency support for PNaCl ABI (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Fix bad merge. Created 7 years, 5 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/Transforms/NaCl/atomics.ll ('k') | test/Transforms/NaCl/resolve-pnacl-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
1 ; RUN: opt %s -pnacl-abi-simplify-postopt -S | FileCheck %s 1 ; RUN: opt %s -pnacl-abi-simplify-postopt -S | FileCheck %s
2 ; RUN: opt %s -pnacl-abi-simplify-postopt -S \ 2 ; RUN: opt %s -pnacl-abi-simplify-postopt -S \
3 ; RUN: | FileCheck %s -check-prefix=CLEANUP 3 ; RUN: | FileCheck %s -check-prefix=CLEANUP
4 4
5 ; "-pnacl-abi-simplify-postopt" runs various passes which are tested 5 ; "-pnacl-abi-simplify-postopt" runs various passes which are tested
6 ; thoroughly in other *.ll files. This file is a smoke test to check 6 ; thoroughly in other *.ll files. This file is a smoke test to check
7 ; that the passes work together OK. 7 ; that the passes work together OK.
8 8
9 target datalayout = "p:32:32:32"
9 10
10 @var = global i32 256 11 @var = global i32 256
11 ; CHECK: @var = global [4 x i8] 12 ; CHECK: @var = global [4 x i8]
12 13
13 define i16 @read_var() { 14 define i16 @read_var() {
14 %val = load i16* bitcast (i32* @var to i16*) 15 %val = load i16* bitcast (i32* @var to i16*)
15 ret i16 %val 16 ret i16 %val
16 } 17 }
17 ; CHECK: = bitcast [4 x i8]* @var 18 ; CHECK: = bitcast [4 x i8]* @var
18 ; CHECK-NEXT: load i16* 19 ; CHECK-NEXT: load i16*
19 20
20 ; Check that dead prototypes are successfully removed. 21 ; Check that dead prototypes are successfully removed.
21 declare void @unused_prototype(i8*) 22 declare void @unused_prototype(i8*)
22 ; CLEANUP-NOT: unused_prototype 23 ; CLEANUP-NOT: unused_prototype
OLDNEW
« no previous file with comments | « test/Transforms/NaCl/atomics.ll ('k') | test/Transforms/NaCl/resolve-pnacl-intrinsics.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698