Skip to content

Commit 6c33222

Browse files
committed
Don't unconditionally run x86-specific tests.
1 parent f9a1d9a commit 6c33222

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/interop.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ c2() = @asmcall("nop", "", false, Nothing)
7878
c3() = @asmcall("nop", "", false, Nothing, Tuple{})
7979
@test c3() == nothing
8080

81+
if Sys.ARCH == :x86 || Sys.ARCH == :x86_64
82+
8183
# arguments
8284

8385
d1(a) = @asmcall("bswap \$0", "=r,r", Int32, Tuple{Int32}, a)
@@ -88,6 +90,10 @@ d1(a) = @asmcall("bswap \$0", "=r,r", Int32, Tuple{Int32}, a)
8890
e1() = @asmcall("mov \$\$1, \$0; mov \$\$2, \$1;", "=r,=r", Tuple{Int16,Int32})
8991
@test e1() == (Int16(1), Int32(2))
9092

93+
# TODO: alternative test snippets for other platforms
94+
95+
end
96+
9197
end
9298

9399

0 commit comments

Comments
 (0)