File tree Expand file tree Collapse file tree 2 files changed +16
-15
lines changed
test/run-make/nvptx-dylib-crate Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313 gdb \
1414 xz-utils
1515
16+ # FIXME: build the `ptx-linker` instead.
17+ RUN curl -sL https://github.com/denzp/rust-ptx-linker/releases/download/v0.9.0-alpha.1/rust-ptx-linker.linux64.tar.gz | \
18+ tar -xzvC /usr/bin
19+
1620RUN curl -sL https://nodejs.org/dist/v9.2.0/node-v9.2.0-linux-x64.tar.xz | \
17- tar -xJ
21+ tar -xJ
1822
1923COPY scripts/sccache.sh /scripts/
2024RUN sh /scripts/sccache.sh
2125
22- ENV TARGETS=wasm32-unknown-unknown
23-
2426ENV RUST_CONFIGURE_ARGS \
2527 --set build.nodejs=/node-v9.2.0-linux-x64/bin/node \
2628 --set rust.lld
@@ -31,11 +33,18 @@ ENV RUST_CONFIGURE_ARGS \
3133# other contexts as well
3234ENV NO_DEBUG_ASSERTIONS=1
3335
34- ENV SCRIPT python2.7 /checkout/x.py test --target $TARGETS \
36+ ENV WASM_TARGETS=wasm32-unknown-unknown
37+ ENV WASM_SCRIPT python2.7 /checkout/x.py test --target $WASM_TARGETS \
3538 src/test/run-make \
3639 src/test/ui \
3740 src/test/run-pass \
3841 src/test/compile-fail \
3942 src/test/mir-opt \
4043 src/test/codegen-units \
41- src/libcore \
44+ src/libcore
45+
46+ ENV NVPTX_TARGETS=nvptx64-nvidia-cuda
47+ ENV NVPTX_SCRIPT python2.7 /checkout/x.py test --target $NVPTX_TARGETS \
48+ src/test/run-make
49+
50+ ENV SCRIPT $WASM_SCRIPT && $NVPTX_SCRIPT
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ extern crate dep;
1212// CHECK: .func (.param .b32 func_retval0) wrapping_external_fn
1313// CHECK: .func (.param .b32 func_retval0) panicking_external_fn
1414// CHECK: .func [[PANIC_HANDLER:_ZN4core9panicking5panic[a-zA-Z0-9]+]]
15- // CHECK: .func [[PANIC_FMT:_ZN4core9panicking9panic_fmt[a-zA-Z0-9]+]]
1615
1716// CHECK-LABEL: .visible .entry top_kernel(
1817#[ no_mangle]
@@ -47,15 +46,8 @@ pub unsafe extern "ptx-kernel" fn top_kernel(a: *const u32, b: *mut u32) {
4746// CHECK: [[PANIC_HANDLER]]
4847// CHECK: }
4948
50- // Verify whether panic handler is present.
51- // CHECK: .func [[PANIC_HANDLER]]()
52- // CHECK: {
53- // CHECK: call.uni
54- // CHECK: [[PANIC_FMT]]
55- // CHECK: }
56-
57- // And finally, check the dummy panic formatter.
58- // CHECK: .func [[PANIC_FMT]]()
49+ // Verify whether out dummy panic formatter has a correct body.
50+ // CHECK: .func [[PANIC_FMT:_ZN4core9panicking9panic_fmt[a-zA-Z0-9]+]]()
5951// CHECK: {
6052// CHECK: trap;
6153// CHECK: }
You can’t perform that action at this time.
0 commit comments