File tree Expand file tree Collapse file tree 3 files changed +22
-20
lines changed Expand file tree Collapse file tree 3 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,8 @@ proc parseSpec*(filename: string): TSpec =
234234 result .err = reDisabled
235235 of " freebsd" :
236236 when defined (freebsd): result .err = reDisabled
237+ of " arm64" :
238+ when defined (arm64): result .err = reDisabled
237239 else :
238240 result .parseErrors.addLine " cannot interpret as a bool: " , e.value
239241 of " cmd" :
Original file line number Diff line number Diff line change @@ -18,26 +18,6 @@ proc toByteArrayBE*[T: SomeInteger](num: T): ByteArrayBE[sizeof(T)]=
1818let a = 12345 .toByteArrayBE
1919echo a[^ 2 .. ^ 1 ] # to make it work on both 32-bit and 64-bit
2020
21-
22- # -----------------------------------------------------------------
23-
24- # bug #11792
25- type
26- m256d {.importc : " __m256d" , header : " immintrin.h" .} = object
27-
28- MyKind = enum
29- k1, k2, k3
30-
31- MyTypeObj = object
32- kind: MyKind
33- x: int
34- amount: UncheckedArray [m256d]
35-
36-
37- # The sizeof(MyTypeObj) is not equal to (sizeof(int) + sizeof(MyKind)) due to
38- # alignment requirement of m256d, make sure Nim understands that
39- doAssert (sizeof (MyTypeObj ) > sizeof (int ) + sizeof (MyKind ))
40-
4121# ---------------------------------------------------------------------
4222
4323type
Original file line number Diff line number Diff line change 1+ discard """
2+ disabled: "arm64"
3+ """
4+
5+ # bug #11792
6+ type
7+ m256d {.importc : " __m256d" , header : " immintrin.h" .} = object
8+
9+ MyKind = enum
10+ k1, k2, k3
11+
12+ MyTypeObj = object
13+ kind: MyKind
14+ x: int
15+ amount: UncheckedArray [m256d]
16+
17+
18+ # The sizeof(MyTypeObj) is not equal to (sizeof(int) + sizeof(MyKind)) due to
19+ # alignment requirement of m256d, make sure Nim understands that
20+ doAssert (sizeof (MyTypeObj ) > sizeof (int ) + sizeof (MyKind ))
You can’t perform that action at this time.
0 commit comments