File tree 2 files changed +16
-15
lines changed
test/run-make/nvptx-dylib-crate
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 \
13
13
gdb \
14
14
xz-utils
15
15
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
+
16
20
RUN curl -sL https://nodejs.org/dist/v9.2.0/node-v9.2.0-linux-x64.tar.xz | \
17
- tar -xJ
21
+ tar -xJ
18
22
19
23
COPY scripts/sccache.sh /scripts/
20
24
RUN sh /scripts/sccache.sh
21
25
22
- ENV TARGETS=wasm32-unknown-unknown
23
-
24
26
ENV RUST_CONFIGURE_ARGS \
25
27
--set build.nodejs=/node-v9.2.0-linux-x64/bin/node \
26
28
--set rust.lld
@@ -31,11 +33,18 @@ ENV RUST_CONFIGURE_ARGS \
31
33
# other contexts as well
32
34
ENV NO_DEBUG_ASSERTIONS=1
33
35
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 \
35
38
src/test/run-make \
36
39
src/test/ui \
37
40
src/test/run-pass \
38
41
src/test/compile-fail \
39
42
src/test/mir-opt \
40
43
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;
12
12
// CHECK: .func (.param .b32 func_retval0) wrapping_external_fn
13
13
// CHECK: .func (.param .b32 func_retval0) panicking_external_fn
14
14
// CHECK: .func [[PANIC_HANDLER:_ZN4core9panicking5panic[a-zA-Z0-9]+]]
15
- // CHECK: .func [[PANIC_FMT:_ZN4core9panicking9panic_fmt[a-zA-Z0-9]+]]
16
15
17
16
// CHECK-LABEL: .visible .entry top_kernel(
18
17
#[ no_mangle]
@@ -47,15 +46,8 @@ pub unsafe extern "ptx-kernel" fn top_kernel(a: *const u32, b: *mut u32) {
47
46
// CHECK: [[PANIC_HANDLER]]
48
47
// CHECK: }
49
48
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]+]]()
59
51
// CHECK: {
60
52
// CHECK: trap;
61
53
// CHECK: }
You can’t perform that action at this time.
0 commit comments