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

Side by Side Diff: test/NaCl/Bitcode/switch-ptr.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 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/NaCl/Bitcode/switch.ll ('k') | test/NaCl/Bitcode/unsupported.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 ; Tests if we handle pointer argument for switch statement.
2 ; https://code.google.com/p/nativeclient/issues/detail?id=4050
3
4 ; RUN: llvm-as < %s | pnacl-freeze \
5 ; RUN: | pnacl-thaw \
6 ; RUN: | llvm-dis -o - | FileCheck %s
7
8 @hi = internal global [1 x i8] zeroinitializer, align 1
9 define internal void @foo() {
10 %e = ptrtoint [1 x i8]* @hi to i32
11 switch i32 %e, label %baz3 [
12 i32 -4, label %baz1
13 i32 -8, label %baz2
14 ]
15 baz1:
16 ret void
17 baz2:
18 ret void
19 baz3:
20 ret void
21 }
22
23 ; CHECK-LABEL: @foo
24 ; CHECK: %1 = ptrtoint [1 x i8]* @hi to i32
25 ; CHECK-NEXT: switch i32 %1, label
26 ; CHECK-NEXT: i32
27 ; CHECK-NEXT: i32
OLDNEW
« no previous file with comments | « test/NaCl/Bitcode/switch.ll ('k') | test/NaCl/Bitcode/unsupported.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698