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

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

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 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
OLDNEW
(Empty)
1 ; RUN: opt %s -pnacl-abi-simplify-postopt -S | FileCheck %s
2 ; RUN: opt %s -pnacl-abi-simplify-postopt -S \
3 ; RUN: | FileCheck %s -check-prefix=CLEANUP
4
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
7 ; that the passes work together OK.
8
9 target datalayout = "p:32:32:32"
10
11 @var = global i32 256
12 ; CHECK: @var = global [4 x i8]
13
14 define i16 @read_var() {
15 %val = load i16* bitcast (i32* @var to i16*)
16 ret i16 %val
17 }
18 ; CHECK: = bitcast [4 x i8]* @var
19 ; CHECK-NEXT: load i16*
20
21 ; Check that dead prototypes are successfully removed.
22 declare void @unused_prototype(i8*)
23 ; CLEANUP-NOT: unused_prototype
OLDNEW
« no previous file with comments | « test/Transforms/NaCl/pnacl-abi-simplify.ll ('k') | test/Transforms/NaCl/pnacl-abi-simplify-preopt.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698