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

Side by Side Diff: tests_lit/reader_tests/nacl-fake-intrinsic.ll

Issue 600043002: Clean up run script to use for testing Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes for rebase from master. Created 6 years, 2 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
1 ; Tests that we don't get fooled by a fake NaCl intrinsic. 1 ; Tests that we don't get fooled by a fake NaCl intrinsic.
2 2
3 3 ; TODO(kschimpf) Find way to run this through p2i. Note: Can't do this
4 ; currently because run-llvm2ice.py raises exception on error,
5 ; and output is lost.
4 ; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \ 6 ; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \
5 ; RUN: | not %llvm2ice -notranslate -verbose=inst -build-on-read \ 7 ; RUN: | not %llvm2ice -notranslate -verbose=inst -build-on-read \
6 ; RUN: -allow-pnacl-reader-error-recovery \ 8 ; RUN: -allow-pnacl-reader-error-recovery \
7 ; RUN: -allow-local-symbol-tables \ 9 ; RUN: -allow-local-symbol-tables \
8 ; RUN: | FileCheck %s 10 ; RUN: | FileCheck %s
9 11
10 declare i32 @llvm.fake.i32(i32) 12 declare i32 @llvm.fake.i32(i32)
11 13
12 define i32 @testFake(i32 %v) { 14 define i32 @testFake(i32 %v) {
13 %r = call i32 @llvm.fake.i32(i32 %v) 15 %r = call i32 @llvm.fake.i32(i32 %v)
14 ret i32 %r 16 ret i32 %r
15 } 17 }
16 18
17 ; CHECK: Error: (218:6) Invalid PNaCl intrinsic call to llvm.fake.i32 19 ; CHECK: Error: (218:6) Invalid PNaCl intrinsic call to llvm.fake.i32
18 20
OLDNEW
« no previous file with comments | « tests_lit/reader_tests/nacl-atomic-intrinsics.ll ('k') | tests_lit/reader_tests/nacl-other-intrinsics.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698