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

Side by Side Diff: test/Transforms/MinSFI/sandbox-memory-accesses-unhandled-instruction.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: not opt %s -minsfi-sandbox-memory-accesses -S 2>&1 | FileCheck %s
2
3 ; The SandboxMemoryAccess pass should fail if it encounters an unexpected
4 ; instruction such as this 'atomicrmw'. This mechanism protects MinSFI
5 ; from unsafe operations which it does not handle appearing in the bitcode.
6 ; This could be a result of a bug in the compiler or a newly introduced
7 ; LLVM instruction.
8
9 define i32 @test_unhandled_instr(i32* %ptr) {
10 %old = atomicrmw add i32* %ptr, i32 1 acquire
11 ret i32 %old
12 }
13
14 ; CHECK: LLVM ERROR: SandboxMemoryAccesses: unexpected instruction with pointer- type operands
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698